Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 683
Default conditional formatting or VB

I have a spreadsheet with text, dates and numbers. I want to change the
color of the cell if a specific word is present within the cell. For
example. Mr Smith's Retirement. Conditional formatting only works if the
only word in the cell is exactly retirement. I want the cell to turn green
if the word retirement is present. Need about 4-5 differnt colors for
specific words.

thanks
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default conditional formatting or VB

Don, is right, you can only do this with a macro. Take a look at these
examples, and modify it to suit your specific needs:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=90
http://www.ozgrid.com/forum/showthread.php?t=59414
http://www.pcreview.co.uk/forums/thread-1739161.php



Regards,
Ryan---

--
RyGuy


"Don Guillett" wrote:

4-5 different colors indicates a need for a macro. Have a look in the vba
help index for SELECT CASE.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Brian" wrote in message
...
I have a spreadsheet with text, dates and numbers. I want to change the
color of the cell if a specific word is present within the cell. For
example. Mr Smith's Retirement. Conditional formatting only works if the
only word in the cell is exactly retirement. I want the cell to turn
green
if the word retirement is present. Need about 4-5 differnt colors for
specific words.

thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default conditional formatting or VB

If you're using xl2007, you get more than the 3 conditional formats that you get
in xl2003 (and before).

And you can use:
formula is: =isnumber(search("retirement",A1))
or
formula is: =isnumber(find("retirement",A1))
or
formula is: =countif(a1,"*retirement*")0
(where A1 is the activecell)

(=search() and =countif() are not case sensitive. =Find() is case sensitive.)



Brian wrote:

I have a spreadsheet with text, dates and numbers. I want to change the
color of the cell if a specific word is present within the cell. For
example. Mr Smith's Retirement. Conditional formatting only works if the
only word in the cell is exactly retirement. I want the cell to turn green
if the word retirement is present. Need about 4-5 differnt colors for
specific words.

thanks


--

Dave Peterson
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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 08:07 PM.

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

About Us

"It's about Microsoft Excel"