need some help: how color x,y scatter using a third variable

lazarus

New Member
Joined
Nov 15, 2005
Messages
1
I have a 2-variable scatter plot of about 50 points. about half of the pairs are female and half male. i know that you can use a third variable (column for sex) to color the data points on the chart, but i have forgotten how.

any help would be appreciated.

thanks
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Damon Ostrander

MrExcel MVP
Joined
Feb 17, 2002
Messages
4,239
Hi lazarus,

There are several different ways to do this. One way that doesn't require any code is to simply divide the male and female values into two different columns, which can be done using a formula in each column that lists just the values that are the desired gender. Then you can use two different series with different point colors to plot the results, and would look the same as if a single series with differently-colored points was used.

A second way is to use VBA code to color the points of a single series based on the gender. This is not difficult to do and I would be happy to email you a simple demo of this type of capability if you request it via email.

Damon
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,551
Messages
5,838,055
Members
430,527
Latest member
MyFace2

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
Top