+ Reply to Thread
Results 1 to 6 of 6

Graphs returning to zero when no value present

  1. #1
    Registered User
    Join Date
    05-25-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Graphs returning to zero when no value present

    Hi there. I'm creating line graphs in Excel, where each record does not necessarily have a value for each point on the X-axis. The X-axis is date, the Y-axis the value that appears on that date. Measurements for each record were taken on different dates - hence every point on the Y only has some values.
    Please Login or Register  to view this content.
    When I create a line graph from this, on the point for which there are null values, the line returns to zero. This gives a totally misleading picture.

    What I want is for that line to simply skip a value for that date, and continue straight to the next actual value. Can anyone suggest a solution?

  2. #2
    Registered User
    Join Date
    05-25-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Graphs returning to zero when no value present

    I should add, I've already tried changing the Hidden and Empty cell settings to "Connect data points with line". It doesn't seem to change anything.

    What I have to do is manually go thourgh each empty cell and delete the "contents". But there is no content in any of these blank cells. I've copied and pasted between applications just to make sure. The cells are empty...but the graph reads them as zero.

    I'm confused. Is this a bug?

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Graphs returning to zero when no value present

    Put =NA() in the blank cells.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    05-25-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Graphs returning to zero when no value present

    Quote Originally Posted by shg View Post
    Put =NA() in the blank cells.
    Thanks for your reply shg...unfortunately I don't think it's worked!

    I'm calculating the figures by formula. So now I have a formula that puts "=NA()" in a cell where appropriate. The graph I produce from this is the same - =NA() values always return to the zero line.

    When I overwrite the formula for those cells with "=NA()" the graph works as it should. But the formula calculated value doesn't do this. I still have to manually change each of these cells. For the small example above this isn't a problem...but I have larger examples with thousands of cells...

    I've also tried copying the whole set and pasting Values only, to get rid of the formula. The same thing happens. Only manually changing each cell works.

    This is getting a bit silly. What's going on?!


    Please Login or Register  to view this content.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Graphs returning to zero when no value present

    You formulas should look MOL like this:

    =if(some condition, some result, na())

  6. #6
    Registered User
    Join Date
    02-07-2012
    Location
    Edmonton, Alberta
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Graphs returning to zero when no value present

    On older versions of Excel, I believe that a more complicated solution is necessary -- see http://www.excelforum.com/excel-char...g-a-graph.html
    Last edited by GTickner; 02-07-2012 at 07:57 PM.

+ 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