Plotting datasets in different colours

Lenboy

New Member
Joined
Dec 17, 2018
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
In columns A and B I have a set of x,y datapoints, and in column C is either 1, 2 or 3 indicating the dataset where a given x,y pair lie. Is it possible to import these 3 columns at one go so that all the x,y pairs falling in dataset 1 are plotted in red, those in dataset 2 in blue and the x,y pairs in dataset 3 plotted in green?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Do you means something like this?
Cell Formulas
RangeFormula
A2:B13A2=RANDARRAY(12,2,1,10,0)
D2:E13D2=IF($C2=RIGHT(D$1,1)+0,A2,NA())
F2:G13F2=IF($C2=RIGHT(F$1,1)+0,A2,NA())
H2:I13H2=IF($C2=RIGHT(H$1,1)+0,A2,NA())
Dynamic array formulas.

1621852549928.png
 
Upvote 0
Solution

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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