How to make a conditional format recognize a formula in a cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What I have is have a spreadsheet with multiple cell containing data. Some
of the data is retreived by a formual and some is due to a manual input of
numbers. I would like to have a conditional format that would shade the cell
if someone writes over the formula with a value.

Any help would be greatly appreciated.
 
One method.

Copy/paste this UDF to your workbook into a General Module.

Function IsFormula(cell)
Application.Volatile
IsFormula = cell.HasFormula
End Function

Select the multiple cells........e.g. A1:A10

Format>CF>Formula is: =NOT(IsFormula(A1))


Gord Dibben MS Excel MVP

On Wed, 13 Sep 2006 12:39:02 -0700, WC Turner <WC
 
Since you're passing the cell to the UDF, I don't think you want the
"application.volatile" line.

Excel should know when to recalc.
 
Thanks Dave.

Someone reported a problem with this UDF no updating so I stuck the volatile in
there.


Gord


Since you're passing the cell to the UDF, I don't think you want the
"application.volatile" line.

Excel should know when to recalc.

Gord Dibben MS Excel MVP
 
I'd bet changing from manual calc or rebuilding the dependency tree would fix
that problem.
 
Press F5..> go to select formulasselect ok cells with the formulas are
selected now changes all these selected cell colors (for example make the
yellow).

Next put a conditional formatting for formulas:

http://j-walk.com/ss/excel/usertips/tip045.htm

For conditional formatting pattern color select white.

If there is a formula in a cell would be white. If there is no formula it
will turn yellow.

Hope it helps.
 

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

Back
Top