Conditional formatting multiple cells from one cell to another

  • Thread starter Thread starter Loadmaster
  • Start date Start date
L

Loadmaster

Hi there, I am looking for a conditional formatting formula so that if C2 or
C4 or C6 or C8 or C12 = $AK$2 to format cell C4 blue AND if C3 or C5 or C7
or C9 or C11 or C13 = $AK$2 format cell C4 green. Can anyone help me out on
this one? I tried entering it in that way and it didn't work.
 
Hi,

Condition 1 will be =OR(C2,C4,C6,C8,C12)=$AK$2 and choose the font format as
Blue
Condition 2 will be =OR(C3,C5,C7,C9,C11,C13)=$AK$2 and choose the font
format as Green

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
It didn't work, I just realized that it was cell A4 not C4 that I wanted
formatting and forgot to mention that cell C2:C13 have the months JAN thru
DEC. Cell AK2 has the array formula
=INDEX(C2:C13,MATCH(1E+100,INDEX(D2:AJ13,0,MAX(IF(D2:AJ13<>"",COLUMN(D2:AJ13)-COLUMN(D2)+1))))) in it. Does this make a difference in your formula?
 
Ashish, is there a formula that will work with array formulas to
conditionally format cell A4 with the array formula
=LOOKUP(9.999999999999E+307,INDEX(D2:AH13,0,MAX(IF(D2:AH13<>"",COLUMN(D2:AH13)-COLUMN(D2)+1)))) in it?
 
Back
Top