I am trying to conditionally format a cell based on other
conditional formatting in a range of cells.
Ex.
I would like cell E3 to be:
Red if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Red
IF NOT THEN
Yellow if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Yellow
IF NOT THEN
Green if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Green
IF NOT THEN
Blue if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Blue
However I did find a work around on Stackoverflow that started me in the right direction:
On the Excel Ribbon, go to "Formulas" and click on "Name Manager". Select "New" and then enter "CellColor" as the "Name". Jump down to the "Refers to" part and enter the following:
=GET.CELL(63,OFFSET(INDIRECT("RC",FALSE),1,1))
Hit OK then close the "Name Manager" window.
Now, in cell A1 enter the following:
=IF(CellColor=3,"FQS",IF(CellColor=6,"SM",""))
This will return FQS for red and SM for yellow. For any other color the cell will remain blank.
***If the value in A1 doesn't update, hit 'F9' on your keyboard to force Excel to update the calculations at any point (or if the color in B2 ever changes).
Below is a reference for a list of cell fill colors (there are 56 available) if you ever want to expand things: Color Palette and the 56 Excel ColorIndex Colors Excel
Any help?
conditional formatting in a range of cells.
Ex.
I would like cell E3 to be:
Red if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Red
IF NOT THEN
Yellow if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Yellow
IF NOT THEN
Green if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Green
IF NOT THEN
Blue if any cells (O3, T3, Y3, AD3, AI3, AN3, AS3) are Blue
However I did find a work around on Stackoverflow that started me in the right direction:
On the Excel Ribbon, go to "Formulas" and click on "Name Manager". Select "New" and then enter "CellColor" as the "Name". Jump down to the "Refers to" part and enter the following:
=GET.CELL(63,OFFSET(INDIRECT("RC",FALSE),1,1))
Hit OK then close the "Name Manager" window.
Now, in cell A1 enter the following:
=IF(CellColor=3,"FQS",IF(CellColor=6,"SM",""))
This will return FQS for red and SM for yellow. For any other color the cell will remain blank.
***If the value in A1 doesn't update, hit 'F9' on your keyboard to force Excel to update the calculations at any point (or if the color in B2 ever changes).
Below is a reference for a list of cell fill colors (there are 56 available) if you ever want to expand things: Color Palette and the 56 Excel ColorIndex Colors Excel
Any help?