+ Reply to Thread
Results 1 to 3 of 3

Only plot scatter points that have both an X and a Y value (2007)

  1. #1
    Forum Contributor
    Join Date
    04-26-2009
    Location
    Austin, TX
    MS-Off Ver
    Excel 2016
    Posts
    241

    Only plot scatter points that have both an X and a Y value (2007)

    Hello Everyone,

    I'm wondering if there is a clever way to configure a scatter chart so that it only plots points that have both an expressed X value and an expressed Y value.

    Right now, I have two columns -- one for X values and the other for Y values.

    For various reasons, many of my data points have an empty cell ("") for their X value, or an empty cell for their Y value.

    Since I want to trendline my scatter chart, and for other reasons, I'd like to ignore these un-plottable data points entirely. Said differently, the empty cells do not represent a zero value, and I don't want to treat them as if they do.

    If my data were static, I could simply Sort the data to separate the wheat from the chaffe.

    But my data is highly dynamic -- small changes to the inputs change which data points lack an expressed X or Y coordinate.

    Since the X and Y data columns are part of a data table, I have tried to use the "Number Filters" at the top of each column. But -- annoyingly, unless I misunderstand something -- the Number Filters do not refresh to reflect changes in the table content. Thus, if I filter out the empty cells, the scatter plot is correct, but as soon as the values in the table columns change, the scatter plot is incorrect again.

    So... summing up.. I'd like a way to dynamically (or automatically) chart only those points which have both an expressed X and an expressed Y value.

    Ideas, anyone?

    Cheers,

    Jay
    Last edited by JayUSA; 06-14-2009 at 07:24 PM.

  2. #2
    Forum Contributor
    Join Date
    04-26-2009
    Location
    Austin, TX
    MS-Off Ver
    Excel 2016
    Posts
    241

    Re: Only plot scatter points that have both an X and a Y value (2007)

    Hello,

    While I would still be interested in any ideas regarding the above, I'm going to mark this thread as "solved". That's because I think that the most elegant solution is to find a way to automatically refresh the Autofilter which can filter out nonvalid plotting points.

    So, I will repose this question in an "Automatically Refresh Autofilter" thread, or revive an old thread addressing this issue.

    Cheers,

    Jay

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

    Re: Only plot scatter points that have both an X and a Y value (2007)

    Rather than having the cell contain "" use NA()

    NA values are not plotted as data markers or included in the trend.
    Cheers
    Andy
    www.andypope.info

+ 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