Number in a cell based on a colour in another cell

tenbellies

New Member
Joined
May 8, 2018
Messages
6
Hi,

Is there any way to have a numeric value in a cell based on a colour in another...

For example if cell A1 is green the text in cell A2 would say 100%

I cant use macro's or VBA the system I have to use does not allow any macro's/VBA - system is locked down to prevent this
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
If the cell has been coloured using Condtional Formatting then just use the same conditions to set the cell value to 100%.
If the cell has been coloured manually your only solution is VBA, formulas cannot determine the colour of a cell.
 
Upvote 0
Worked it out =if(cell("format"="G","100%",0)

That's G for General, the format of the VALUE of that cell is General format, nothing to do with colour.
Change the colour of the cell text to something other than green.
Your cell value will still say 100% so the formula is not picking up the colour of the text (as stated above).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,820
Members
449,469
Latest member
Kingwi11y

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