Macro for Conditionally Formatting Comments

G

Guest

Is there a way to write a macro to conditionally format a cell with text?
For the cell in question, I have written an IF statement that will enter a 1
when something is incorrect. I've written that formula to be
=IF(A2<B2,1,""). For cells with a 1 in it, I've used conditional format to
highlight it red. I also want to figure out a way for that cell to say
"Check Times." How do I do that?
 
G

Guest

I'm not sure I get what you mean... maybe you want the cell to be in red and
show "Check Times". So your saying the 1 really doesn't matter, it's just an
indicator to check times?

Because you can write

=IF(A2<B2,"Check Times","")

Then under Format--->Conditional Formatting

Say Equal to "Check Times"
And format it to red

Is that what you want?
 

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