Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Highlight a cell with a specific word in it

Hi,
I'm trying to highlight a cell using CONDITIONAL FORMATTING if the cell has
the word "Repair" in it anywhere. Example: "123456 - REPAIR" will be in the
cell and the conditional format will recognize the word "Repair" and
Highlight the cell.

Is it possible to do that?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default Highlight a cell with a specific word in it

In the Conditional Formatting box, put "Formula Is"

=SEARCH(UPPER("repair"),A1,1)<0



HTH,
JP

On Jan 10, 2:38*pm, Soulscream
wrote:
Hi,
I'm trying to highlight a cell using CONDITIONAL FORMATTING if the cell has
the word "Repair" in it anywhere. Example: "123456 - REPAIR" will be in the
cell and the conditional format will recognize the word "Repair" and
Highlight the cell.

Is it possible to do that?

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Highlight a cell with a specific word in it

Give this conditional format formula a try...

=NOT(ISERROR(SEARCH("repair",D1)))

where you would replace D1 with the active cell in your selection.

Rick


"Soulscream" wrote in message ...
Hi,
I'm trying to highlight a cell using CONDITIONAL FORMATTING if the cell has
the word "Repair" in it anywhere. Example: "123456 - REPAIR" will be in the
cell and the conditional format will recognize the word "Repair" and
Highlight the cell.

Is it possible to do that?

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Highlight a cell with a specific word in it

=COUNTIF(A1:A1,"*repair*")


"Soulscream" wrote:

Hi,
I'm trying to highlight a cell using CONDITIONAL FORMATTING if the cell has
the word "Repair" in it anywhere. Example: "123456 - REPAIR" will be in the
cell and the conditional format will recognize the word "Repair" and
Highlight the cell.

Is it possible to do that?

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Highlight a cell with a specific word in it

Thanks, Rick. Out of all the responses I got yours was the only one i could
get to work. I was able to actually shorten it to:

=SEARCH("repair",D1)

and this also worked, I had never used the SEARCH function before, you and
the others have been a great help. Thank you so much!

"Rick Rothstein (MVP - VB)" wrote:

Give this conditional format formula a try...

=NOT(ISERROR(SEARCH("repair",D1)))

where you would replace D1 with the active cell in your selection.

Rick


"Soulscream" wrote in message ...
Hi,
I'm trying to highlight a cell using CONDITIONAL FORMATTING if the cell has
the word "Repair" in it anywhere. Example: "123456 - REPAIR" will be in the
cell and the conditional format will recognize the word "Repair" and
Highlight the cell.

Is it possible to do that?

Thanks.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Highlight a cell with a specific word in it

Thanks for the feedback. I always thought the Conditional Format formulas had to evaluate to TRUE or FALSE, or at least their numerical equivalents of 0 or 1; but you are right, your reduction of my formula works even though the return condition can be a number greater than 1 or and error condition. Live and learn. By the way, I tried the other two posted formulas and they both worked fine for me. The key was using the active cell in the selection in place of their cell reference to A1.

Rick


"Soulscream" wrote in message ...
Thanks, Rick. Out of all the responses I got yours was the only one i could
get to work. I was able to actually shorten it to:

=SEARCH("repair",D1)

and this also worked, I had never used the SEARCH function before, you and
the others have been a great help. Thank you so much!

"Rick Rothstein (MVP - VB)" wrote:

Give this conditional format formula a try...

=NOT(ISERROR(SEARCH("repair",D1)))

where you would replace D1 with the active cell in your selection.

Rick


"Soulscream" wrote in message ...
Hi,
I'm trying to highlight a cell using CONDITIONAL FORMATTING if the cell has
the word "Repair" in it anywhere. Example: "123456 - REPAIR" will be in the
cell and the conditional format will recognize the word "Repair" and
Highlight the cell.

Is it possible to do that?

Thanks.


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
Highlight automatically a specific cell Frances Holden[_2_] Excel Worksheet Functions 1 January 7th 08 03:05 PM
Link from a specific Cell in Excel to a specific para. in Word CathyK Excel Worksheet Functions 0 August 10th 06 04:40 PM
delete cell that doesn't contain a specific word [email protected] Excel Discussion (Misc queries) 1 October 12th 05 05:54 AM
how do I make a word typed in a cell go to a specific cell in anot Lmatarazzo Excel Discussion (Misc queries) 3 April 21st 05 04:29 AM
Highlight a row if a specific cell is specific numbers/words sea0221 Excel Worksheet Functions 2 March 9th 05 12:06 AM


All times are GMT +1. The time now is 09:02 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"