+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Charting of zero values

  1. #1
    Registered User
    Join Date
    12-30-2009
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Charting of zero values

    Hi and thanks in advance for any help that might be given.
    I'm using the following formula to obtain the average of 2 numbers but to show as blank if one of the numbers is missing as in no value for future dates.
    =IF(A20=0,"",average(A20:A21)).
    Fairly simple stuff but when I use a line chart to display the values and trends, the lines drop to the bottom when they reach the data for the future dates. If I leave the cells blank it charts correctly, but as soon as I extend the formula down the column into the future dates, the problem occurs. This happens regardless of how I format the series to show zero and/or null values. This of course prevents the trendlines from showing future trends as they also drop to the bottom of the chart.

    Any and all suggestions will be greatly appreciated.

    regds, Norm

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Charting of zero values

    Hi Norm,

    use NA() instead of "" to create a chart where the points connect from point to point, interpolating missing points.

    You can not create a true "blank" with a formula, so if you want your line chart to have gaps, you best check Andy Pope's article about masking line charts.

    http://www.andypope.info/charts/brokenlines.htm

    hth

+ 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