+ Reply to Thread
Results 1 to 7 of 7

Hiding zeros in a Chart

  1. #1
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Hiding zeros in a Chart

    Hello. I have charts that show monthly trends. I have to update this chart about twice a week. At the beginning of the month, there are obviously a lot of cells with no information in them. At first, I selected all of the days of the month but that showed them as zeros in the charts. I couldn't figure out the solution so I just reselected the data each month to correspond to the last day with data. Today, I tried puting in a If/Then formula with "#NA" for zeros, but that didn't work. Any ideas? I KNOW that this is possible, I just don't know how. Thanks.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Hiding zeros in a Chart

    Have you tried

    =IFERROR(yourformula,NA())
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Hiding zeros in a Chart

    Well, that won't work....My formula is a sum formula and it either equals to a number or it equals 0 (because their is no data), so the formula you proposed will just result in 0 This was the formula that I used =IF(SUM(NB119+NB120)=0,"#NA",SUM(NB119+NB120)) but it also didn't work. Thanks.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Hiding zeros in a Chart

    By zero on the chart, my impression is you may be referring to the data labels?

    If so, did you look into a custom format >> 0;;;
    HTH
    Regards, Jeff

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

    Re: Hiding zeros in a Chart

    try modifying the formula as Richard suggested.

    =IF(SUM(NB119+NB120)=0,NA(),SUM(NB119+NB120))

    Alternatively look into using a dynamic named range to only plot data up to current period
    Cheers
    Andy
    www.andypope.info

  6. #6
    Forum Contributor
    Join Date
    12-12-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    448

    Re: Hiding zeros in a Chart

    Sweet. That worked!! I was inserting "#N/A" rather than NA(). What is the difference? Thanks.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Hiding zeros in a Chart

    Hi,

    "#N/A" is just a string of characters and means nothing (apart from that) to Excel
    NA() on the other hand is an Excel function, just as SUM() is a function, and means something very specific to Excel in terms of what it will do.

+ 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