Formula to pull values related to a coloured cell

Poncke

New Member
Joined
Nov 15, 2019
Messages
2
I have 3 cells, each cell has a value, 1, 2, 3

The cell value is related to a score, each score located in another cell, 10, 8, 0

To pick a value, the user has to change the cell colour, for example the user picks the cell with 1 and shades it any colour

Then the formula needs to pull in the score of 10 into another cell.If the User picks the cell with number 2 and shades it, then the formula needs to pull in 8 into the cell, etc.

How do I do this?

Thank you
 

Some videos you may like

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"

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,341
"Then the formula needs to pull in the score of 10 into another cell."
So the formula detects the change of cell colour.
The method you describe would only be possible by VBA. Formulas cannot detect cell colours nor the change of cell colour.

Why dont you simply get them to select the cell by, say, putting an X under the one they want?
What's the purpose of getting them to shade the cell?
By getting them to activate the cell (in order to shade it) you run the risk of them tapping the keyboard accidentally and overwriting the "1, 2, 3" cells which sound like they may have a formula in them ("is related to a score"), thereby deleting the formula.
 
Last edited:

Poncke

New Member
Joined
Nov 15, 2019
Messages
2
Yeah, I wanted to edit my post to add that I probably need a VBA but I couldnt. I have it all sorted now with a workaround. I created an UDF to use in a formula to copy the value of the coloured cell into another cell, and based on that cell, I did a volookup. I got what I want now.
 

Watch MrExcel Video

Forum statistics

Threads
1,089,955
Messages
5,411,486
Members
403,374
Latest member
PMMHart

This Week's Hot Topics

Top