Forum Discussion

Granny_Ruth's avatar
Granny_Ruth
Copper Contributor
Apr 08, 2023
Solved

highlight or format cells with formulas

I can't see quite this question on the forum, apologies if I've missed it!

I want to format every cell in the worksheet that contains a formula. I tried to make a conditional rule for every cell containing "=" as I thought that would identify the ones with formulas in, but it doesn't work. Then I tried highlighting them, but that didn't work either - help!

  • Granny_Ruth 

    Select the entire range.

    In the following I will assume that A1 is the active cell in the selection.

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...
    Select 'Use a formula to determine which cells to format'.
    Enter the formula

     

    =ISTEXT(FORMULATEXT(A1))

     

    Click Format...
    Activate the Fill tab.
    Select a highlight color.
    Click OK, then click OK again.

6 Replies

  • Lorenzo's avatar
    Lorenzo
    Silver Contributor

    Granny_Ruth 

    Excel Mac >/= 2011 & Excel Windows >/=2013 have function https://support.microsoft.com/en-us/office/isformula-function-e4d1355f-7121-4ef2-801e-3839bfd6b1e5

     

    With Conditional Formatting:

    • Granny_Ruth's avatar
      Granny_Ruth
      Copper Contributor
      Thank you -I have already sorted it out using Hans' post, but thanks for replying!
  • Granny_Ruth 

    Select the entire range.

    In the following I will assume that A1 is the active cell in the selection.

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...
    Select 'Use a formula to determine which cells to format'.
    Enter the formula

     

    =ISTEXT(FORMULATEXT(A1))

     

    Click Format...
    Activate the Fill tab.
    Select a highlight color.
    Click OK, then click OK again.

  • Granny_Ruth's avatar
    Granny_Ruth
    Copper Contributor

    I also tried to find and replace with a bold format but that didn't work either....

     

Resources