+ Reply to Thread
Results 1 to 6 of 6

Chart Series With Zero Values - How to ommit from chart

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    87

    Chart Series With Zero Values - How to ommit from chart

    Hi All

    Can anyone help with a problem with a chart series.

    I have 12 Legend Entries (series) within a line chart. These represent temperature readings, and the data used will always have 12 records. I have used the offset function to calculate the range of data .

    My problem is how to ommit the data in a column (series) if that column consist of only zeros....ie there was no temperature recorded or it was not in use.

    Any ideas of how to approach the problem would be apprecated..

    Kindest regards


    Diane

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Chart Series With Zero Values - How to ommit from chart

    Hi Diane (of the narrow lines),

    Try replacing the ZERO VALUES with blanks. According to Andy Pope the Excel Chart Wizard '#N/A' is supposed to work, but BLANKS seem to work better for me. He has many excellent examples that have helped me many times at:http://www.andypope.info/charts/brokenlines.htm

    See the attached Excel 2003 workbook containing a line chart created with the Chart Wizard containing several series. Delete the items in Column G one by one, and watch the line disappear.

    Lewis
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Chart Series With Zero Values - How to ommit from chart

    Hi Lewis

    Thanks for coming to the rescue again.

    It's not quite as simple as that. I have attached a sample data sheet for you to have a look at.

    Diane

    Test Temperature Chart.xlsx

  4. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Chart Series With Zero Values - How to ommit from chart

    Hi Diane,

    Not so simple requires a not so simple solution.

    Click on the Chart in question then run the following Macro. It should delete all Data Series with ALL ZERO values.

    Lewis

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Chart Series With Zero Values - How to ommit from chart

    Hi Lewis

    Wow what can I say only I would be so lost without your help.

    I will spend some time tomorrow implementing your codes, and finalising the chart, and let you know how it all goes.

    As always I appreciate you sharing your time and expertise.

    Diane

    PS No sterling signs today.
    Last edited by Maroota; 01-21-2014 at 04:39 AM. Reason: Addition to original text

  6. #6
    Registered User
    Join Date
    04-19-2010
    Location
    Manchester, England
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: Chart Series With Zero Values - How to ommit from chart

    Hi Lewis

    Just to let you know the code is just what I needed. It's working like a dream.

    Thanks

    Diane

+ 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. Chart front-to-back series display if series are different chart types
    By Exconomist in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-06-2012, 06:49 AM
  2. Omiting a series of zero values from a chart
    By Tigger01 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-28-2012, 07:30 AM
  3. Using offset in series values of chart
    By Dutchbeer in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-16-2007, 09:05 AM
  4. Change Chart Series values in VBA
    By testar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2006, 12:26 PM
  5. Series.Values vs Chart.SetSourceData
    By Hans in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2006, 07:25 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