This works for me:
=(INDIRECT(ADDRESS(IF(ISEVEN(ROW()),ROW()-1,ROW()),22))="3 Monthly")*(OR(COLUMN()=25, COLUMN()=28))
Pregunta
I am working on a MS Excel 2010 spreadsheet where the users want to have some combined conditional formatting. Individually the functions I want to apply are working correctly, i.e this condition formula works:
= INDIRECT( ADDRESS( IF( ISEVEN( ROW() ), ROW() - 1, ROW() ), 22) ) = "6 Monthly"
As does this:
= OR( COLUMN() = 25, COLUMN() = 28)
But combining the formulae fails to apply any format. No error is returned, but the highlighted area is unaffected on applying the condition:
AND( INDIRECT(ADDRESS(IF(ISEVEN(ROW()), ROW() - 1, ROW()), 22)) = "3 Monthly", OR( COLUMN() = 25, COLUMN() = 28) )
If I want the cells where both conditions are met to be highlighted, what should I enter as the formula?
Solución
This works for me:
=(INDIRECT(ADDRESS(IF(ISEVEN(ROW()),ROW()-1,ROW()),22))="3 Monthly")*(OR(COLUMN()=25, COLUMN()=28))
Otros consejos
Your conditional formatting formulas seem overly complex to me
Select Y11:Y48
and then hold down CTRL key and also select AB11:AB48
and apply the conditional formatting formula
=$V11="3 Monthly"
Format as required
That will highlight the column Y and AB cells in every row where col V = "3 Monthly" - isn't that the requirement?
Use IF
:
=IF(INDIRECT(ADDRESS(IF(ISEVEN(ROW()),ROW()-1, ROW()),22))="3 Monthly",OR(COLUMN()=25,COLUMN()=28),0)
Hope this helps.