+ Reply to Thread
Results 1 to 10 of 10

Plotting Null Values

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Plotting Null Values

    I as with many others seem to have a problem with this.

    I have a table containing data for four years (monthly) and not all the data starts and finished at the same time period. Using a lookup selectable by user I am able to plot the data for one series against the average. Removing the references prior to the start and after the finish is okay, however where I am stuck is where there are gaps in the series which should not be plotted. If plotting the series manually it is okay as the values are null, but using the lookup feature excel treats the formula itself as a non null value. I would prefer not to use VBA but cannot find any way around this at present.

    Any comments would be appreciated

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    hi,

    I'm not entirely sure what you're after - can you post an example?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Plotting Null Values

    Sorry If I was not too clear

    I have attached three jpegs one showing an excerpt from part of the data table, one showing the chart with null values and one without. The data table has around 150 entries and not all entries start and finish at the same time.

    The table runs for a four year period and data is displayed only for a 12 month period using a slider and the offset function

    The chart shows item 73 which has a gap in the data for Sept and Oct but which shows on the chart as zero values.

    If plotted directly from the relevant data there is a gap as it is a null value, but as shown using the lookup function it generates a non null value which excel shows as zero.
    Attached Images Attached Images

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    OK,

    you need to modify your lookup function to convert a null value to NA() which will generate a #N/A? error in the cell, but will give a void in the graph, not a zero.

  5. #5
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Null Values

    Thanks for the tip which I have applied and it works, partly.

    The null points are no longer being plotted, however for some reason although the null values leave gaps options has been selected it is interpolating the data (this applies whichever setting is used).

    If you have any ideas I would be grateful to hear

    I have attached two screenshots illustrating the effect.
    Attached Images Attached Images

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by solnajeff
    Thanks for the tip which I have applied and it works, partly.

    The null points are no longer being plotted, however for some reason although the null values leave gaps options has been selected it is interpolating the data (this applies whichever setting is used).

    If you have any ideas I would be grateful to hear

    I have attached two screenshots illustrating the effect.
    Hi,

    if you don't have 'smooth line' selected then you might need to post the chart and chart figures as a .xls, it's difficult to test with a .jpg.

    ---
    Si fractum non sit, noli id reficere.

+ 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