How to make a legend out of a column in a scatter chart?

RickArnold

New Member
Joined
Mar 11, 2015
Messages
2
I have some data that I would like to plot on a scatter chart. Below is a basic example of the data I am using. I would like to have the Group as the legend, Days from Start as my X-axis, and Distance as my Y-axis. I know that I can add each group separately and select the appropriate zones as my input from the Select Data Source, but I have several thousand rows of data. Does anyone know how I can do this more easily? I am hoping not to create a VBA script.

Group
Days from Start
Distance
A
A
1
1
A
2
2
A
3
3
B
B
1.1
2.5
B
2.3
5
B
2.9
6.5
C
.9
2.6
C
1.6
4.5
C
2.5
2.3

<tbody>
</tbody>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,216,030
Messages
6,128,413
Members
449,449
Latest member
Quiet_Nectarine_

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top