Every once in awhile (today being one of them) I'll write what appears to be an error-free formula for conditional formatting, and it just doesn't work. No error message.
The most common factor I have isolated is the use of the AND and OR operators. Today's failure is:
If I copy the formula to a cell and execute it, it yields TRUE, as it should.=AND(INDIRECT("C"&ROW()-1<>"",INDIRECT("C"&ROW()+1="")
If I put the following formula:in a different condition for the same cell it works correctly.=INDIRECT("C"&ROW()-1<>""
If I then add the AND (or an OR) to get:
it stops working.=AND(INDIRECT("C"&ROW()-1<>"")
I have used the boolean operators in other workbooks successfully, but in others they don't work. Today's attempt is in a new workbook with one worksheet. As I said, this happens to me every once in awhile. In one such instance, I transferred the formula to another workbook, and it worked. Any ideas??