Format based on cell contents being a formula or not

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

How do I format a cell with red highlights if it contains a value and leave
it alone if it containes a formula? I useed =isformula(F6)=FALSE with Excel
2007 conditional formatting but now can't get it to work.
 
Hi,

First define a range name -
1. Choose Insert, Name, Define
2. and in the Names in workbook box enter F (or any name you want)
3. in the Refers to box enter
=GET.CELL(48,INDIRECT("rc",FALSE))
Next apply conditional formatting: to mark all cells with formulas
4. Format, Conditional Formatting
5. Formula is
6. Enter =F
7. Click Format and pick a color
to mark all cells without formulas
6a. Use <>F
 
Shane-

Thanks for your help but I found an old note I had that worked for me:

In order for Excel to check a cell for the contents to be a formula or just
plain values you must press Alt F11 and enter this:

Function IsFormula(c)
IsFormula = c.HasFormula
End Function

as a Visual Basic Module VBM
 
Back
Top