+ Reply to Thread
Results 1 to 7 of 7

Dynamic chart from a range containing formulas

Hybrid View

chrismeeky Dynamic chart from a range... 08-01-2018, 05:27 AM
jason.b75 Re: Dynamic chart from a... 08-01-2018, 05:56 AM
chrismeeky Here it is sir. ... 08-01-2018, 07:50 AM
Pickygame Re: Dynamic chart from a... 08-01-2018, 06:38 AM
jason.b75 Re: Dynamic chart from a... 08-01-2018, 07:14 AM
jason.b75 Re: Dynamic chart from a... 08-01-2018, 08:16 AM
chrismeeky Awesome. It worked. Thank... 08-01-2018, 05:39 PM
  1. #1
    Registered User
    Join Date
    02-12-2016
    Location
    Enugu
    MS-Off Ver
    enugu
    Posts
    50

    Dynamic chart from a range containing formulas

    Hi guys. I have a range of cells (A1:E) with data referenced from another worksheet (sheet1). With if statement, this range remains empty until sheet1 is updated.

    I want to insert a dynamic chart which updates when this range becomes non-empty. I have tried the offset function but it seems not to recognise cells containing formulas as empty even when they are virtually empty.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Dynamic chart from a range containing formulas

    Formula blanks not being blank are a common problem, I would guess that you're using COUNTA to determine the number of rows / columns in offset.

    Try finding the last row of numeric data by using something like MATCH(1e+100,A:A) instead.

    To provide a more accurate solution, we will need more information in order to reduce guesswork. Your OFFSET formula to provide the ranges would help, as would knowing a column that holds numeric data to use for the row count.

  3. #3
    Registered User
    Join Date
    02-12-2016
    Location
    Enugu
    MS-Off Ver
    enugu
    Posts
    50
    Quote Originally Posted by jason.b75 View Post
    Formula blanks not being blank are a common problem, I would guess that you're using COUNTA to determine the number of rows / columns in offset.

    Try finding the last row of numeric data by using something like MATCH(1e+100,A:A) instead.

    To provide a more accurate solution, we will need more information in order to reduce guesswork. Your OFFSET formula to provide the ranges would help, as would knowing a column that holds numeric data to use for the row count.
    Here it is sir.
    =OFFSET(DynamicChart1!$A$2,0,0,COUNTA(DynamicChart1!$A:$A))

    That's to make column A dynamic which I applied to the rest of the columns

  4. #4
    Registered User
    Join Date
    04-03-2009
    Location
    yorkshire
    MS-Off Ver
    Office 365
    Posts
    89

    Re: Dynamic chart from a range containing formulas

    I use =IF(TODAY()>L$1,'July 17'!$F$8,NA()) to update a chart from a worksheet. So can you use

    =IF('Sheet 1'!A1>0,A1,NA())

    Inserting NA prevents the chart from displaying

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Dynamic chart from a range containing formulas

    That is all well and good if the result of that formula is only used for the chart(s). If you have other formulas relying on those results as well then a deliberate NA() could be more of a problem than a solution.

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Dynamic chart from a range containing formulas

    See if this does what you need

    =OFFSET(DynamicChart1!$A$2,0,0,MATCH(1e+100,DynamicChart1!$A:$A)-1)

    Please not that the highlighted column should contain numeric data, if column A contains text references, you will need to use a different column for this part. Use the same column for everything to ensure consistency.

  7. #7
    Registered User
    Join Date
    02-12-2016
    Location
    Enugu
    MS-Off Ver
    enugu
    Posts
    50
    Quote Originally Posted by jason.b75 View Post
    See if this does what you need

    =OFFSET(DynamicChart1!$A$2,0,0,MATCH(1e+100,DynamicChart1!$A:$A)-1)

    Please not that the highlighted column should contain numeric data, if column A contains text references, you will need to use a different column for this part. Use the same column for everything to ensure consistency.
    Awesome. It worked.
    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Dynamic Range/Dynamic Chart Using Cell Value for Reference and without CountA
    By kelseygueldalewis in forum Excel General
    Replies: 11
    Last Post: 09-11-2017, 04:52 PM
  2. [SOLVED] Create a dynamic chart with ranges generated from formulas
    By BRISBANEBOB in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-09-2016, 04:31 AM
  3. EDIT: Bar Chart Dynamic Formula with Cell Reference Formulas
    By HGL in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-01-2016, 09:02 AM
  4. Insert cells, fill formulas down, set formulas for dynamic range
    By Snickers65 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 01:43 PM
  5. How to set MyRange if i have dynamic range for dynamic chart
    By Dbmaryleo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2012, 05:00 AM
  6. Dynamic Range Column Chart w/ Dynamic Avg Line (Excel 2007)
    By BrokenBiker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-04-2012, 11:40 AM
  7. Dynamic Chart will not work as empty cells contain Formulas
    By feno1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-11-2011, 03:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1