Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Macro for Conditionally Formatting Comments

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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default Macro for Conditionally Formatting Comments

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?

"Daren" wrote:

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?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Macro for Conditionally Formatting Comments

Yes, thanks for being able to help. That's exactly what I need. Thanks very
much!

"AKphidelt" wrote:

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?

"Daren" wrote:

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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditionally formatting currency Yendorian Excel Worksheet Functions 3 June 15th 07 12:13 AM
Conditionally Formatting phmckeever Excel Worksheet Functions 1 August 25th 06 03:00 PM
Conditionally formatting rows junoon Excel Worksheet Functions 4 May 29th 06 10:36 PM
Conditionally formatting other cells? brett Excel Worksheet Functions 3 December 20th 05 11:09 PM
Insert comments conditionally - ajit Ajit Munj Excel Discussion (Misc queries) 3 June 10th 05 02:11 PM


All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"