+ Reply to Thread
Results 1 to 9 of 9

Ignoring zero values on graph

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Ignoring zero values on graph

    Hi!

    I have a line graph that charts certain data per day in a month.

    During the weekend there is no data. The graph however considers the number as zero, and I want it to just "skip" that day and plot the line directly from the friday date to the monday, instead of the line touching zero on saturday's and sundays.

    Is it possible to do this? Or am I forced to adapt my table to only include days of the week?

    Thankyou for your time.
    Last edited by FortuneSyn; 02-19-2010 at 12:14 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,439

    Re: Ignoring zero values on graph

    If you have cells for the weekend dates then they either need to be empty or contain NA() in order to surpress the data marker.

    If still stuck post example file
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Ignoring zero values on graph

    I am using a portuguese version of excel

    Do you know what I have to type into the cell in order to for it to be NA() and hence suppress the data?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,439

    Re: Ignoring zero values on graph

    Afraid not.

    What if you use VBA to populate a cell, try this in the immediate window. (ALT+F11 CTRL+G)

    Activecell.formula = "=NA()"

    then check the cells formula.

  5. #5
    Registered User
    Join Date
    08-26-2009
    Location
    Lima, Peru
    MS-Off Ver
    Excel 2007
    Posts
    37

    Question Re: Ignoring zero values on graph

    I think I have a similar question, maybe it could help us both.

    I use a formula to populate column B under the condition column A is greater than 0. I want column B to not display 0 or - or #NA so I use this:

    Please Login or Register  to view this content.
    I later chart this column for multiple sheets. The really odd thing is that sometimes the charts don't drop to zero in the 'Else if' situation, but sometimes they do....

    Is there an alternative to "" and NA() that effectively makes a cell NILL without displaying anything?

    Maybe I could make a custom formula as a macro say called "Nill()" and when I put that into a cell it makes it blank? I don't know how this could work though since I still want to keep the IF() statement there.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,439

    Re: Ignoring zero values on graph

    Your formula would need to be

    =IF(A1>0,A1*3,NA())

    Again, the use of #N/A in a line chart would be to remove the data marker only. It line not break the line although it will stop it from being treated as zero.

    There is nothing else that a chart would understand in terms of non empty cells.
    Numbers as Numbers
    Text as Zero
    N/A as marker surpress

    If you think you really do have examples of where your original formula plots zeros or not then post them please.

    One thing to check is that the chart type is line and not stacked line, as stacked line will always treat as zero.
    Last edited by Andy Pope; 02-19-2010 at 11:49 AM.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: Ignoring zero values on graph

    Quote Originally Posted by Andy Pope View Post
    There is nothing else that a chart would understand.
    Numbers as Numbers
    Text as Zero
    N/A as marker surpress
    If I may, I would like to add:
    Empty cell as discontinuity (i.e., no marker and no line, for line graphs). (This is a true empty cell; a cell with blank text is treated as zero.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,439

    Re: Ignoring zero values on graph

    @6StringJazzer, whilst true the list was in relation to non empty cells.

    I have added that cavet to my post

  9. #9
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Ignoring zero values on graph

    Thanks alot for your help Andy!

    NA() is N鬃.DISP() in portuguese excel.

    For other translations, this is a useful link:
    http://dolf.trieschnigg.nl/excel/excel.html

+ 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