+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    05-28-2008
    Posts
    20

    Dynamic Chart with Zero values

    I am trying to make a dynamic chart so that future zero values (months with no data yet) do not show up on the chart.

    With my spreadsheet, I have the values for the chart being referenced from other cells. Having several months that have zero values (which cannot be deleted), how can I have a dynamic chart to not display the zero values?

    The dynamic charts work (from my understanding) if the zero values are actually BLANK values.

    Using =NA# causes the same issue and has the extra months plotted which I don't want. Is there a way to make a cell that is equal to a zero value in another cell be blank/empty?

    I've been working on this for hours and cannot find a solution.

    I followed the steps from this thread: http://www.excelforum.com/excel-charting/470385-charting-a-full-year-without-zeros.html
    Last edited by kasimagj; 05-28-2008 at 04:46 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    4,972
    You can use the COUNTIF function in your defined name instead of the typical COUNTA. See attached. For the values, I used
    Code:
    =OFFSET(Sheet1!$B$3,0,0,COUNTIF(Sheet1!$B$3:$B$14,">0"))
    and for the months
    Code:
    =OFFSET(Values,0,-1)
    This will not work if you have 0 values for any past months.

    ChemistB
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-28-2008
    Posts
    20

    Talking Yay!

    You're my savior!! Thank you so much!

Thread Information

Users Browsing this Thread

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

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.2.0