Scatter Chart - Different Colors

silver3502

New Member
Joined
Sep 13, 2017
Messages
3
Hi,

I have set of data and need to create scatter chart with two different color data sets

1. Basically I want to create a scatter chart with below data. Use 'price' as Y axis
2. If middle 'Sid' column got B then data point in scatter chart should be in blue
3. If middle 'Sid' column got S then data point in scatter chart should be in red.

Can we use any formula or vba to achieve this...thanks in advance.



[TABLE="width: 265"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Description Sid[/TD]
[TD][/TD]
[TD] price[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]345.25[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]335.25[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]330.25[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]349[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]349.5[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]351.25[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]350[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]B[/TD]
[TD="align: right"]349.25[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]352[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]351.75[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]381[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]376[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]363[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]422[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]409[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]424[/TD]
[/TR]
[TR]
[TD]Hog Dec17[/TD]
[TD]S[/TD]
[TD="align: right"]420[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Are you sure you want a scatter chart? I assume you want Price on the vertical, on the y-axis. What is supposed to be on the horizontal, the x-axis?

No matter what type of chart, to give B one color and S a different color requires two chart series—two different columns of data. Here are two different line charts using the data you posted. These two charts are not the only ways to plot the data.

YNAzYUi.png


Are either of the charts close to what you want?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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