--
Biff
Microsoft Excel MVP
"JohnG" <Jo...@discussions.microsoft.com> wrote in message
news:CC792E38-6D53-4303...@microsoft.com...
Public Function HasRx(MyCell As Range) As Variant
HasRx = MyCell.HasFormula
End Function
Select all of column A. Then add conditional formatting based on the
following formula:
=AND(LEN(A1)>0,HasRx(A1)=FALSE)
Put the function code in a general VBA module in your workbook. If you are
new to user-defined functions (macros), this link to Jon Peltier's site may
be helpful:
http://peltiertech.com/WordPress/2008/03/09/how-to-use-someone-elses-macro/
Hope this helps,
Hutch
Create a define name range call HasFormula, in the Refers to:
=GET.CELL(48,$A2)
Select A2:A10
Conditional Formatting: =NOT(HasFormula)
format any color you like
=NOT(GET.CELL(48,$A2))
in the Refers to field instead? That way, the OP could use a more
straightforward looking =HasNoFormula in the conditional formatting dialog.
--
Rick (MVP - Excel)
"Teethless mama" <Teethl...@discussions.microsoft.com> wrote in message
news:17B2126F-8AD3-4911...@microsoft.com...
HTH
Steve D.
"JohnG" <Jo...@discussions.microsoft.com> wrote in message
news:3B8EAAC7-9A89-43BD...@microsoft.com...
Hi John, I had the same situation last week: A template with a default
formula, but due to business reasons the user can overwrite it.
Initially I tried to use conditional format, so if cell has not
formula = other color. However, I found that many users overwrite the
formula with just another formula! So be careful with this approach…
What I did to solve it is I added the conditional format as Formula IS
NOT EQUAL TO, then put there the original formula, and turned blue if
not the result of my formula.
Regards,
C