Say I have a table as follows:

Label | X | Y | A | 1 | 1 | B | 2 | 2 | B | 3 | 2 | A | 4 | 3 | C | 5 | 4 | A | 4 | 3 | C | 2 | 1 |

How can I make this into an Excel scatter plot with 3 series (A,B,C) without manually selecting the correct rows manually for each series (like this answer). This table would be this chart:

enter image description here

Sorting won't help, as I want to do this relatively dynamically with new data.

  • 1
    What have you tried? Have you considered using a pivot table to organize your data, then make a chart from there? Regular Charts from Pivot Tables might help you.
    – CharlieRB
    May 6 '14 at 14:11
  • 1
    @CharlieRB PivotTable's give aggregates of the data right? I want all the data points to be visible in the chart, so how can PivotTables help me?
    – dtech
    May 6 '14 at 14:20
  • I've also added the plotted chart to show what I want to achieve, but automatically.
    – dtech
    May 6 '14 at 14:24
  • No, you'll need to add each series individually. Whether you want to try to automate that with a macro or use the built in tools. May 6 '14 at 15:58
  • 1
    Are there meant to be more points for A in the graph? Eg, (4,3)?
    – binaryfunt
    May 6 '14 at 18:55

Easier way, just add column headers A, B, C in D1:F1. In D2 enter this formula: =IF($A2=D$1,$C2,NA()) and fill it down and right as needed.

separated a-b-c data for scatter plot

Select B1:B8, hold Ctrl while selecting D1:F8 so both areas are selected, and insert a scatter plot.

chart with data highlighted beneath it

  • 2
    How did you get it to use A, B, C as series names? This did not work for me.
    – nietras
    Aug 6 '16 at 17:01
  • 1
    @harryuser Select B1:B8 and ctrl-select D1:D8. You need to include the top row of the data. Then insert the chart. (I originally said to select B2:B8 and D1:D8, sorry for the confusion). Aug 10 '16 at 12:20
  • 2
    @JonPeltier It's easier: Just select columns D to F and then control+select the disjoint column B.
    – Ark-kun
    Mar 12 '17 at 9:57
  • 2
    @Nicolas - Okay, convert the data range into a Table (Ctrl+T). Now add a row. The formulas autofill, and the chart automatically plots the new row. Very dynamic ;-) Sep 7 '19 at 18:55
  • 1
    This solution is as inelegant as it is effective. Aug 23 '20 at 16:04

Excel won't dynamically add new series, so I'm going to assume while the data can change, the names and number of series won't.

What I would recommend is transforming the data in a dynamic way that is easier to place a spot for each series by itself.

In Column D put:


This will give values such as B3 for the 3rd element of the B series. Now that you have sequential labels for all elements of all series you can do lookups.

In a new sheet put



C1="A - X"

D1="A - Y"

And just add 3 columns just like that for each of your series. So it'll find which row the series named "A" has its first entry, the one you labeled A1, and then in column C it'll look up the X value, and in column D it'll look up the Y value. Then create a series A on your graph with X coordinates from column C and Y coordinates from column D, and as your underlining data gets more rows or rows change which series they are in, the graph will automatically update.

  • If the chart data is in a Capital-T Table, and the chart uses all of the columns of the Table, then adding a new column will add a series to the chart. Sep 3 '20 at 2:34

If you put the data into two columns, leaving one column blank each time, that should do the trick

  • This doesn't make sense. Perhaps you could elaborate? Aug 24 '20 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.