+ Reply to Thread
Results 1 to 9 of 9

Ignoring Zero Values in Excel Graph

  1. #1
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Lightbulb Ignoring Zero Values in Excel Graph

    Dear Experts,

    I have here attached an excel file for your kind attention and help.

    In this report there is an excel graph whose name is "Quality Index Chart May 2016". The data range for this is in "May 2016 Data sheet". My requirement is; "the CURVES should not drop down to "zero" values although the data sheet contains zero values in the range.

    Thanks in advance.

    Anuruddha
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,385

    Re: Ignoring Zero Values in Excel Graph

    If you want a line or scatter chart to "ignore" a data point, it is usually recommended to use an N/A error value rather than 0. I suggest this essay http://peltiertech.com/mind-the-gap-...g-empty-cells/ In some cases, that may mean having two copies of the table -- one for you to look at with the 0 values, and one for the chart to look at with the N/A errors.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Ignoring Zero Values in Excel Graph

    In C4 put this formula to convert your 0's to NA#

    =IF(B4/J4=0,NA(),B4/J4*100)

    and drag down the column. Your chart will ignore these points
    Happy with my advice? Click on the * reputation button below

  4. #4
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Ignoring Zero Values in Excel Graph

    Dear Crooza,

    Thanks for your kind response.

    I did as you have advised, but it didn't work...pls look at it again...

  5. #5
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Ignoring Zero Values in Excel Graph

    It would be best if you uploaded a spreadsheet that could be edited.

  6. #6
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Ignoring Zero Values in Excel Graph

    Dear Crooza,

    This is an editable sheet. However, I noticed one problem in the formula. Formula works only if a figure is typed in D4, F4 and H4. If all those cells contain zeros formula shows "#DIV/0!". Secondly, even one of D4, F4 and H4 contains a value, formula works..

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,777

    Re: Ignoring Zero Values in Excel Graph

    In C4

    =IFERROR(B4/J4*100,NA())

    copy down

  8. #8
    Forum Contributor
    Join Date
    12-06-2013
    Location
    Sri Lanka
    MS-Off Ver
    Excel 2016
    Posts
    613

    Re: Ignoring Zero Values in Excel Graph

    Dear John,

    Thanks a lot and your are really appreciated.

  9. #9
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Ignoring Zero Values in Excel Graph

    Wasn't editable for me but as John says wrap an iferror around it although I'd wrap it around the formula I gave you otherwise you're going to be still stuck with zero figures and you'll be back to square one.

    =Iferror(if(b4/j4=0,na(),b4/j4*100,na())

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Data Cleanup - ignoring blanks, ignoring rows with string values etc.
    By Huyaku in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 08:17 AM
  2. [SOLVED] Ignoring Null Values when Plotting an Excel 2003 Bar Chart
    By molson1973 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 02-18-2014, 06:11 AM
  3. Replies: 5
    Last Post: 12-04-2013, 04:54 AM
  4. Ignoring zero values on graph
    By FortuneSyn in forum Excel General
    Replies: 8
    Last Post: 02-19-2010, 12:13 PM
  5. Ignoring Zero in Bar Graph
    By shartley in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-21-2008, 05:28 AM
  6. Linking and Ignoring in Excel Graph
    By wesleyslaughter in forum Excel General
    Replies: 15
    Last Post: 01-08-2007, 07:31 PM
  7. [SOLVED] ignoring null values in graph
    By Kris B in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-05-2005, 03:05 PM

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