Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Formatting Rows based on word being found in cell

I have multiple static words which I want to have a macro search for
within the first two columns of the sheet.

If the words are found then the rows are to be formatted in bold.

I tried to record a macro for this but was hopeless.

Can someone help?

There are around 5 words in totals that I would like the macro to
search for.

Thank you

Andrea

  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Ken is offline
external usenet poster
 
Posts: 207
Default Formatting Rows based on word being found in cell

Andrea

If the words you are looking for constitute the entire contents of the
cells in columns A or B, you can accomplish this easily with
conditional formatting.

The condition would be something like:

Condition 1
Formula is =or($a1="one", $a1="two", $b1="one",$b1="two")

but including all 10 possibilites in the OR statement, assuming each of
the 5 words could be in either column A or B. If some words can be in
only one of the columns you would of course have fewer possibilites in
your OR statement.

If the words can be embedded in longer strings in those columns, you
have a more difficult, but not insurmountable, situation.

Good luck.

Ken
Norfolk, Va




wrote:
I have multiple static words which I want to have a macro search for
within the first two columns of the sheet.

If the words are found then the rows are to be formatted in bold.

I tried to record a macro for this but was hopeless.

Can someone help?

There are around 5 words in totals that I would like the macro to
search for.

Thank you

Andrea


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
Formula by which meaning of word can be found out in another cell vicky Excel Worksheet Functions 1 August 30th 07 09:34 AM
Copy rows based on a word being found in a cell [email protected] Excel Programming 19 October 31st 06 09:01 PM
Conditional Formatting 4+ conditions, format rows based on cell nockam[_4_] Excel Programming 10 July 12th 06 11:12 PM
Populate a cell based on a keyword it found in another ghobbit Excel Programming 12 May 16th 06 04:47 AM
Deleting Rows based on text in cell & formatting cell based on text in column beside it Steve Excel Programming 4 February 26th 04 03:31 PM


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