Auto Format Scatter Chart

bluenose5709

Board Regular
Joined
Dec 15, 2012
Messages
52
Office Version
  1. 365
  2. 2024
Platform
  1. Windows
  2. MacOS
  3. Web
I wonder if you may help,

I have inserted a scatter chart based upon the data you can see in the image below, this is working fine, however what I would like now is to auto colour the dots based upon the classification, For example:

Striker = Gold
Midfield = Silver
Defence = Bronze
Winger = Blue

Any help will be hugely appreciated.

Thank you

1739887754196.png
 
My idea would be to create 4 pairs of names in name manager (Ctrl+F3) using Filter. If your fata is in Excel table you can use structural references if not just absolute references. as presented below in columns N amd M resp.

The names (I prepared only 3 pairs) are listed in rows 13... (of course you don't keep these cells (nor formulas in N2 and M2) in ready sheet. It is just info. And note that my local separator in formula is semicolon, you probably need a comma.

Then you can use these names while adding series to a graph.

1740836294332.png


and the graph is:

1740836420754.png
The snipped of sheet and formulas made with XL2BB (highly recommended on this forum):

Book1
ABCDEFGHIJKLMNOPQR
1Column1Column2classColumn3Column4ageColumn5Column6time on squadColumn7Column8StrikerStriker
2Winger18881749
3Defence18511625
4Midfield18611637
5Winger18571629
6Winger17361521
7Striker17491525
8Midfield17451412
9Winger1741
10Defence1637
11Midfield1645
12Striker1625
13Striker1637Defence_age=FILTER(Table2[age];Table2[class]="Defence")
14Defence1633Defence_ToS=FILTER(Table2[time on squad];Table2[class]="Defence")
15Striker1629Midfield_age=FILTER(Table2[age];Table2[class]="Midfield")
16Winger1625Midfield_ToS=FILTER(Table2[time on squad];Table2[class]="Midfield")
17Striker1521Striker_age=FILTER(Table2[age];Table2[class]="Striker")
18Winger1529Striker_ToS=FILTER(Table2[time on squad];Table2[class]="Striker")
19Striker1525
20Defence1421
21Striker1412
22Defence1414
23Midfield137
24Winger1312
25Defence136
26Midfield138
27
Sheet1
Cell Formulas
RangeFormula
M2:M8M2=FILTER(Table2[age],Table2[class]=M1)
N2:N8N2=FILTER($I$2:$I$26,$C$2:$C$26=N1)
Dynamic array formulas.
 
Upvote 0

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