+ Reply to Thread
Results 1 to 2 of 2

Scatter graph with multiple XY values for each legend series

  1. #1
    Registered User
    Join Date
    06-18-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    31

    Question Scatter graph with multiple XY values for each legend series

    Hi there,

    I have a table of one block of data. I'd like to create a scatter graph using three of the columns but can't work out how to automatically generate the chart without entering each entry manually individually under different series. One of the rows repeats for each entry then has X and Y data in another column. For example:

    Name Throw Distance Throw Accuracy
    Sam 10 2
    Sam 11 3
    Sam 11 2
    John 12 -1
    John 14 1
    John 16 3
    George 8 -2
    George 9 -0.5
    George 10 0.5

    Where each persons name is a series, the throw distance is the horizontal axis and the accuracy is the vertical axis. The table will have data added regularly so I'd like the chart to add new data by searching for the name and adding it to the relevant series with the scatter dot in the relevant X & Y place.

    Hopefully this makes sense and looking forward to any advice...

    Many thanks
    Last edited by mailrush; 12-23-2016 at 01:58 PM.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Scatter graph with multiple XY values for each legend series

    This may not be what you want, but I can plot one series at a time.

    First I made a chart manually just to see what the final results should look like. The chart under the data is the working chart.

    For convenience I made a dropdown box in cell A15 where you can select the name.

    Then I made two named ranges for throw distance and throw accuracy:
    T_D =IF(Table1[Name]=Sheet1!$A$15,Table1[Throw Distance],NA())
    T_A =IF(Table1[Name]=Sheet1!$A$15,Table1[Throw Accuracy],NA())

    Both of these were entered using the name manager and entered as an array formula. What T_D says is if you find the name in Column A, use the value in the Throw_Distance column, otherwise use NA() (which does not plot). T_A is similar logic.

    Then make a an X-Y scatter plot using some fixed values. Then right click on the chart and select Select - Data. Click on the series. Edit the series. Click in the series name box and then select Call A15 - this will change the name of the series when you select a new name.

    For the X-Values, type in T_D in place of the fixed values (keep the sheet or book name and apostrophe)
    For the Y-Values, type in T_A in place of the fixed values.

    When you select a new name, the named ranges will change and so will the plot.

    I can't think of a way off hand to make all there series at once without resorting to VBA.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Replies: 1
    Last Post: 12-19-2016, 01:26 PM
  2. Multiple Series Scatter Graph and Macro
    By dougie216 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2012, 03:37 AM
  3. multiple series scatter plot graph
    By airone12 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-09-2012, 07:46 AM
  4. scatter graph and marker labels with multiple series
    By tkotko123 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 12-01-2011, 05:29 PM
  5. Replies: 1
    Last Post: 02-25-2011, 06:27 AM
  6. Excel macro for multiple series in a single scatter graph using 3 columns
    By trumptmast in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2006, 01:49 PM
  7. [SOLVED] Changing order of series appearing in the legend on xy scatter plo
    By JacksonRJones in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-04-2006, 06:10 PM

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