+ Reply to Thread
Results 1 to 9 of 9

How can I ignore zeros on a chart with multiple lines?

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    How can I ignore zeros on a chart with multiple lines?

    I have a chart with dates on one axis and tasks due on another axis.

    Each line in the chart represents a department.

    The data for the chart looks like this:

    chart example.jpg


    As you can see some dates have a "zero" value for a department but a non zero value for another department.

    The problem I have is each individual line on the chart looks like this, because they have zero values in between their non zero values:

    bad.PNG

    As you can see, the line plummets to zero when the date has a zero value for that department. I want the lines to IGNORE the zero values, and smoothly transition between non zero points, which would make it look like this:

    ideal.PNG


    I can accomplish this with a chart that only has one department on it by simply removing the dates that have a "zero" value, however this is not an option on a multi department chart because SOME dates have a value for one department and a zero for another.

    How can I make this chart to where dates are ignored ON AN INDIVIDUAL line basis if they have a zero value, while still keeping that date on the chart for the other lines that have a value there?

    Basically I don't want to ever see a line dip down to zero on the chart, zero values should be treated as if no point exists there, with the line sloping between it's last two non-zero points.
    Last edited by ks100; 10-02-2015 at 09:39 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: How can I ignore zeros on a chart with multiple lines?

    Use NA() instead of 0 where you want blank

  3. #3
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How can I ignore zeros on a chart with multiple lines?

    Quote Originally Posted by zbor View Post
    Use NA() instead of 0 where you want blank
    I tried that, didn't seem to work. Even tried DIV/0

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: How can I ignore zeros on a chart with multiple lines?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How can I ignore zeros on a chart with multiple lines?

    Quote Originally Posted by zbor View Post
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    SampleChartBook - Copy.xlsx

    File is attached

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: How can I ignore zeros on a chart with multiple lines?

    I've put NA() and get result.
    What is your expected result?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How can I ignore zeros on a chart with multiple lines?

    Quote Originally Posted by zbor View Post
    I've put NA() and get result.
    What is your expected result?
    There is only one line on that chart, I need all four departments to be on the same chart while having non zero values.

  8. #8
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How can I ignore zeros on a chart with multiple lines?

    Quote Originally Posted by zbor View Post
    I've put NA() and get result.
    What is your expected result?
    Nevermind, I got it working. Thank you! (I forgot to add #NA to the other columns)

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: How can I ignore zeros on a chart with multiple lines?

    Yea, I know.
    I just show you how to do it.
    Adopt for other as needed.

+ 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. ignore zeros in pivot chart
    By ammartino44 in forum Excel General
    Replies: 11
    Last Post: 09-11-2015, 10:57 AM
  2. Small - Ignore zeros
    By pauldaddyadams in forum Excel General
    Replies: 6
    Last Post: 07-05-2015, 05:02 PM
  3. [SOLVED] How can I use min function with ignore zeros
    By migdad in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-20-2013, 06:17 AM
  4. Ignore zeros in chart data
    By Steve00 in forum Excel General
    Replies: 5
    Last Post: 06-23-2010, 09:14 PM
  5. Minimum value, ignore zeros
    By anmck in forum Excel General
    Replies: 1
    Last Post: 03-31-2009, 04:25 PM
  6. Ignore zeros in charting
    By Tom_Fernley in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-23-2008, 04:01 AM
  7. Ignore blanks or zeros
    By gil0730 in forum Excel General
    Replies: 1
    Last Post: 02-03-2005, 12:12 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