Format based on cell contents being a formula or not

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.
 
S

Shane Devenshire

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
 
J

Joe

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top