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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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