+ Reply to Thread
Results 1 to 8 of 8

How to make my line chart disregard Zero Values

  1. #1
    Registered User
    Join Date
    06-07-2018
    Location
    Vancouver
    MS-Off Ver
    2016
    Posts
    43

    How to make my line chart disregard Zero Values

    I was wondering how I can make my line chart disregard zero values?

    I don't mean empty cells that I can make the table disregard by editing the data!

    Thank you!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to make my line chart disregard Zero Values

    Hi again.

    Is the zero an entry, or a calc?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-07-2018
    Location
    Vancouver
    MS-Off Ver
    2016
    Posts
    43

    Re: How to make my line chart disregard Zero Values

    Hi! Great to see you again 😊

    It is a calculation! It’s basically a summary of a chart I made.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to make my line chart disregard Zero Values

    If you force the calc to return ERROR, the chart will ignore it

  5. #5
    Registered User
    Join Date
    06-07-2018
    Location
    Vancouver
    MS-Off Ver
    2016
    Posts
    43

    Re: How to make my line chart disregard Zero Values

    I'm not exactly sure how to do that so I have attached the excel sheet.

    I created a dynamic dropdrop list for the chart that is connected to the summary sheet, but the formula makes the empty cell come out as value 0.

    If you see on the chart, it makes a drop to 0...

    Is there a way I can make it disregard the 0 and connect from 1 to 3 right away?

    Thank you
    Attached Files Attached Files

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

    Re: How to make my line chart disregard Zero Values

    you need your formula in column N to return #N/A rather than zero when the cell in the lookup range is empty.

    Quickest way to do this is select the lookup range, CTRL+G > Special Cells > Blanks.
    type =NA()
    use CTRL+ENTER to populate all cells.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    06-07-2018
    Location
    Vancouver
    MS-Off Ver
    2016
    Posts
    43

    Re: How to make my line chart disregard Zero Values

    Thank you! It worked

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to make my line chart disregard Zero Values

    Seeing as this will be an ongoing file, it might be better to have that built into the formula, rather than manually changing the 0's (Andy's suggests are always great though). To that end, maybe this will work for you as well>
    N2=IF(INDEX($B$2:$J$73,MATCH(M2,$A$2:$A$73,0),MATCH($N$1,$B$1:$J$1,0))=0,#N/A,INDEX($B$2:$J$73,MATCH(M2,$A$2:$A$73,0),MATCH($N$1,$B$1:$J$1,0)))

+ 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. Line chart too wide (52 weeks) How to make it the line chart automatically?
    By sovietchild in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 06-26-2016, 08:20 PM
  2. [SOLVED] How do I make a simple 2-point line chart?
    By helen269 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-31-2016, 04:36 PM
  3. How to add a line into the macro to disregard the value of 1
    By gemmasou81 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2014, 05:45 AM
  4. Replies: 2
    Last Post: 11-14-2012, 08:59 AM
  5. [SOLVED] How to make a flexible line chart in Excel
    By BNCOXUK in forum Excel General
    Replies: 3
    Last Post: 10-30-2012, 12:26 PM
  6. Can't make a chart with values on the right side of a line graph.
    By ZanderUVA in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-18-2010, 06:13 AM
  7. Replies: 4
    Last Post: 07-05-2006, 11:10 AM

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