Change cell value based on colored cell in another range

VeKa27

Board Regular
Joined
Sep 11, 2015
Messages
56
Hi all,

This one can be difficult..
Imagine a blank worksheet with 5 colored cells in Yellow (C1:C5). Those cells have values from 1 to 5. Then I have another cell, lets say F5 that has to look to the range C1:C5.
If I change the color of one of the yellow cells to green, cell F5 has to give the value of the green cell.
There is always only one green cell upon the other yellow cells. But the green cell changes from C1 tot C5 and F5 has always have to give the value of the green one.

Anyone who is smarter then me to create a code for this?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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