Forum Discussion

J2-____jj's avatar
J2-____jj
Copper Contributor
May 10, 2019

Using formula function instead of conditional formatting

Can a conditional format be replaced with a if, then function containing cell formatting functions? If so, where can I get information and examples?

4 Replies

  • J2-____jj 

    You can develop your formulas and then assign then to a defined Name using Name Manager.  The formula should result in TRUE or FALSE when evaluated in each of the conditionally formatted cells.  Each conditional will depend on one such formula. 

      • PeterBartholomew1's avatar
        PeterBartholomew1
        Silver Contributor

        SergeiBaklan 

        Agreed

        TRUE can also be any non-zero number

        FALSE can also be a character string, zero, an error or a blank cell

        Have I missed anything?

         

        The thing that causes me most grief is the inability of CF to work with a Boolean array; all it seems to see is the value of the first item.  It also fails on Range intersection but at least that can be hidden within a defined name.

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    J2-____jj , formulas in Excel work with cells values, not with cells properties like format. To work with properties you may use VBA programming, or conditional formatting, or, in some extent, custom numbers formatting.

Resources