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
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
"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:
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,223,701
Messages
6,173,920
Members
452,539
Latest member
deeme

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