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.

[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD]Group
[/TD]
[TD]Days from Start
[/TD]
[TD]Distance
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]1
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]2
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]3
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]1.1
[/TD]
[TD]2.5
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]2.3
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]2.9
[/TD]
[TD]6.5
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD].9
[/TD]
[TD]2.6
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]1.6
[/TD]
[TD]4.5
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]2.5
[/TD]
[TD]2.3
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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