+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Error message when 1 series in chart has only #NA

  1. #1
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Error message when 1 series in chart has only #NA

    Hi,

    I currently use NA() to cause a line chart to not dip to 0 for missing values.
    This works fine as long as there is at least 1 valid value in a series.

    However, when there are no valid values in a series, excel pops an error when the chart comes into vision and the entire series vanishes off the chart (legend remains). The first data point is then shown as the maximum value on the first x point of the chart.

    I have 2 series in the chart, 1 of which is always valid.

    Is there any way around this?

    Cheers

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Error message when 1 series in chart has only #NA

    Quote Originally Posted by dip11 View Post
    excel pops an error when the chart comes into vision
    which is... ?
    Remember what the dormouse said
    Feed your head

  3. #3
    Valued Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    341

    Re: Error message when 1 series in chart has only #NA

    A formula in this worksheet contains one or more invalid references.
    Verify that your formulas contain a valid path, workbook, range name, and cell reference.


    I seem to have done a workaround where if all 12 cells to the left are N/A, make the 12th cell of this range -0.1. And then made sure that the named range was using set ranges via $.

    Not turning it into set ranges resulted in if the first few values were NA the range would go from its actual range to 107480 or so.

    Not having the check 12 check to set to -0.1 would result in the error and still create the max value point at the first instance.

    Had to use both, which is quite a pain.

    Part of this, I had to create a separate logic checker:
    {=SUM(IF(ISNA(M2:M13),1))]}

    Which I can't seem to combine into a different formula as this one is CSE and the other isn't:
    =IF(SUM(ISNA(M2:M13)=12,-0.1,IF(ISNA(M13),NA(),1-M13)))
    Last edited by dip11; 06-15-2012 at 07:38 AM.

+ 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.6.0 RC 1