Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
GerryK
 
Posts: n/a
Default Search for more than one word

Could I please get some advice on how to make this formula (or some other
one) to look for more words?

=SEARCH("wires",A2:$AB$2000)

I'd like to conditionally format cells in AB that contain the words wires,
power, lines, cable.

TIA
  #2   Report Post  
David McRitchie
 
Posts: n/a
Default

Hi Gerry,
You can use AND() if you want them all
You can use OR() if you want any of them

Search is not case sensitive, but you get an error if not found so this should get
you started, simply add the additional word. comparisons for "lines" and for "cable".

A1: corded wires
B1: =OR(NOT(ISERR(SEARCH("wires",A1,1))),NOT(ISERR(SEA RCH("power",A1,1))) )

Instead of using (or in addition to using) formula in B1, you could use the
same formula in Conditional Formatting.

For more information on Conditional Formatting see
http://www.mvps.org/dmcritchie/excel/condfmt.htm
For more information on strings see
http://www.mvps.org/dmcritchie/excel/strings.htm

Since you did, in fact, ask for Conditional Formatting....
Select column AB and with cell AB1 as the active cell, use the formula above
using AB1 instead of cell A1
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"GerryK" wrote in message ...
Could I please get some advice on how to make this formula (or some other
one) to look for more words?

=SEARCH("wires",A2:$AB$2000)

I'd like to conditionally format cells in AB that contain the words wires,
power, lines, cable.

TIA



  #3   Report Post  
bj
 
Posts: n/a
Default

try
=or(not(iserror(find("wires",a2))),not(iserror(fin d("power",A2))), etc)
in your conditional fomat formula. If the case may be sensitive, you may
have to play with it somewhat.

"GerryK" wrote:

Could I please get some advice on how to make this formula (or some other
one) to look for more words?

=SEARCH("wires",A2:$AB$2000)

I'd like to conditionally format cells in AB that contain the words wires,
power, lines, cable.

TIA

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
Can Excel Export Data to Word Format? Reddiance Excel Discussion (Misc queries) 2 April 18th 05 06:03 PM
Entering Excel information into MS Word dwalsh77 Excel Discussion (Misc queries) 0 April 8th 05 05:29 PM
FAQ Spreadsheet with search function murphyz Excel Discussion (Misc queries) 0 March 19th 05 09:24 PM
How to embed Word document into Excel and retain sizing, formatti. Kent Excel Discussion (Misc queries) 0 February 2nd 05 07:37 PM
Embedded word doc changed to image-need to change back to word. cflores Excel Discussion (Misc queries) 0 January 23rd 05 06:45 AM


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