gformula to find formulas

  • Thread starter Thread starter gary
  • Start date Start date
G

gary

I need a formula that references another cell and tells me
whether that cell has a formula or a value in it.
Any ideas??
Thanks.
 
Hi
you may try the following UDF (put in a module of your workbook)

Function is_formula(rng As Range)
is_formula = rng.HasFormula
End Function

Now enter the following in A2 to check A1:
=IF(is_formula(A1),"A1 is a formula","A1 is a value")
 

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