+ Reply to Thread
Results 1 to 7 of 7

Thread: 'Smart' charts?

  1. #1
    Registered User
    Join Date
    05-23-2007
    Posts
    22

    'Smart' charts?

    I have a very simple line chart with two rows of data, and columns (dates) stretching out several months. Without having to constantly revise the source data, is there a way to have the chart automatically ignore cells with empty data?

    For example, if every column is a day in July, I wouldn't want the chart to continue to the 31st.... only to today... and so on...

    Thanks in advance!!

  2. #2
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,170
    Something like this perhaps? I used a named range in the chart. You can right click on the chart, click "Select Data..." and edit that series to see how to enter a named range in a chart. Essentially, you use ='Book3.xls'!Quantity (name I chose for the named range). HTH
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-23-2007
    Posts
    22

    Thanks!!

    THANK YOU!! I'm sure this will do the trick!

  4. #4
    Registered User
    Join Date
    05-23-2007
    Posts
    22

    Hiccup

    So I got to work... sort of... It doesn't seem to like forumae being present in the cells. I've got an 'IF' function that keeps the cells blank until there's data above (calculates and graphs a percentage change).

    When I clear the contents of the cell, your trick works well. When the formula is there (even though blank), it doesn't...

    Any suggestions? Thanks regardless!

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351
    You may need to adjust the named range formula.

    Can you post your workbook.
    Cheers
    Andy
    www.andypope.info

  6. #6
    Forum Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,170
    It works for me when I have a formula that returns a blank, but one way around this issue is to change the named range formula from what I had it as to
    =OFFSET(Sheet1!$A$3,0,0,1,31-COUNTBLANK(Sheet1!$A$3:$AE$3))
    , since COUNTBLANK usually does a better job of recognizing blanks that are caused by formulas than the rest of Excel.

  7. #7
    Registered User
    Join Date
    05-23-2007
    Posts
    22
    Ok... your original fix works great! I didn't pay attention the 'refers to' part of your definition of the named range... operator error...

    PERFECT!

    Thanks!!

+ Reply to Thread

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