Line graph with conditional data selection

Luke.Speam

New Member
Joined
Jun 6, 2012
Messages
6
Hello,
I have a spreadsheet containing a large dataset of reflected light values for a number of different coloured squares. These squares each have a stimulus name (which is comprised of a code detailing the specific paints and proportions used in making the square), a colour category (simply the colour name of the square - e.g. blue, blue-green, etc.), a lightness (e.g. light, medium, or dark), and finally the amount of light reflected for each wavelength of light between 380nm and 780nm (in 4nm intervals). See the example below:
StimulusColourLightness380nm384nm
aredlightx1x2
bbluelightx3x4
cbluedarkx5x6
dgreenmediumx7x8

<tbody>
</tbody>

As I said, the data set is larger than this (comprising of around 400 stimuli), and there are far more than 3 colour names.

My question to you is this: Is there some way to create several line graphs (one for each colour category) with the wavelengths on the x axis and the reflected light values on the y axis? My aim is to have a line graph for each of the different colour categories with each stimulus within that category to be an individual series.

This would be an easy job if I could just sort the data by the colour category and then manually select the data for each colour category. However, any given stimulus' colour category is liable to change at any point in time. I am currently reviewing the colour categories of all stimuli to try to make sure they are consistent with each other - this is a long process and is extremely variable (e.g. one day I might call a particular stimulus blue, the next day purple). So it is crucial that each graph's data selection range is dynamic - so that if I reclassified, for example, stimulus b from blue to purple, the graph with all purple colours would automatically include this in its data selection.

One solution to this I have been thinking of is using VLOOKUP formulae in different sheets (e.g. one sheet for Blue, another for Red, etc.) to return all the stimuli, and their respective reflected wavelengths, that are classified as a given colour and then create a line graph within each of those sheets. But I don't know how to do this - is it even possible to VLOOKUP multiple values like that?

In my final words of this post, I'd like to say thank you (and sorry!) for reading this extremely long post and thank you for any suggestions you have. If you would like me to explain in further detail anything, please don't hesitate to ask.

Thanks again, Luke.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,827
Messages
6,121,817
Members
449,049
Latest member
cybersurfer5000

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