Forum Discussion
conditional formatting if other cell contain value
- Jun 02, 2018
IMHO, it's easier to apply to column A green rule
=$B1="approved"
and red rule
=$B1="denied"
Please see second sheet in attached
You can create a C:C column with an IF(B1="APPROVED";A1;"") and a D:D column with the same formula (but "denied" instead of approved) and add a conditional formatting with some conditions to the A1 cell:
1) if the A1 cell is equal to the correspondant C1, then color it green (excel will give you "$C$1", remove the $ marks on the number);
2) if the A1 cell is equal to the correspondant D1, then color it red (excel will give you "$D$1", remove the $ marks on the number);
Then save the conditions; now copypaste (special paste: format) the cell on all C column. At the end, hide column C and D for a better graphic result. Buon lavoro!
IMHO, it's easier to apply to column A green rule
=$B1="approved"
and red rule
=$B1="denied"
Please see second sheet in attached
- Samuele MerolaJun 02, 2018Copper ContributorThank you very much!
- Arul TresoldiJun 04, 2018Iron ContributorI preferred that solution because if you ever want to export that file to an online excel (such as calcs on googledrive) you may find some issues with that conditions.
- SergeiBaklanJun 04, 2018Diamond Contributor
I see no problems with Excel Online