Forum Discussion

oayrancioglu's avatar
oayrancioglu
Copper Contributor
Aug 27, 2022
Solved

Problem with Conditional Formatting that have Formula

Hi everyone,   I made an IF statement as a formula for "conditional formatting" and I try to apply that "conditional formatting" for each cell by avoiding merge that "conditional formatting". Every...
  • HansVogelaar's avatar
    Aug 27, 2022

    oayrancioglu 

    You should use rules as in the "not like this" screenshot.

    Since the formulas in the rules use relative cell references, Excel will automatically adjust them for each cell in the 'Applies to' range, regardless of how large that range is.

    By the way, it isn't necessary to explicitly use IF with TRUE and FALSE in the formulas.

     

    =IF(K2=0;TRUE;FALSE)

     

    is equivalent to

     

    =K2=0

     

    and

     

    =IF(AND(N2=0;L2>14);TRUE;FALSE)

     

    is equivalent to

     

    =AND(N2=0;L2>14)

Resources