Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default conditional formatting -- testing for multiple words

I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default conditional formatting -- testing for multiple words

Hi!

FIND is case sensitive so Chef and chef do not match.

Try this:

=OR(ISNUMBER(FIND({"Chef","Apple","Lodge"},D1)))

If you don't need it to be case sensitive replace FIND with SEARCH.

Biff

"The Moose" wrote in message
oups.com...
I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default conditional formatting -- testing for multiple words

I would put my list of words on another worksheet (hidden???) and give that
range a nice name--say myList.

Then I'd use format|conditional formatting with a formula like:
=MATCH(D1,myList,0)


The Moose wrote:

I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default conditional formatting -- testing for multiple words

I don't think you can use arrays like this in conditional formatting.

Biff wrote:

Hi!

FIND is case sensitive so Chef and chef do not match.

Try this:

=OR(ISNUMBER(FIND({"Chef","Apple","Lodge"},D1)))

If you don't need it to be case sensitive replace FIND with SEARCH.

Biff

"The Moose" wrote in message
oups.com...
I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default conditional formatting -- testing for multiple words

Ooops!

Yep, you're right. No array constants.

Biff

"Dave Peterson" wrote in message
...
I don't think you can use arrays like this in conditional formatting.

Biff wrote:

Hi!

FIND is case sensitive so Chef and chef do not match.

Try this:

=OR(ISNUMBER(FIND({"Chef","Apple","Lodge"},D1)))

If you don't need it to be case sensitive replace FIND with SEARCH.

Biff

"The Moose" wrote in message
oups.com...
I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb


--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default conditional formatting -- testing for multiple words

The way that I read the OP is that there is more than just a single word in
the cells. I could be wrong!

Biff

"Dave Peterson" wrote in message
...
I would put my list of words on another worksheet (hidden???) and give that
range a nice name--say myList.

Then I'd use format|conditional formatting with a formula like:
=MATCH(D1,myList,0)


The Moose wrote:

I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb


--

Dave Peterson



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default conditional formatting -- testing for multiple words

I try not to read the original question--just read the responses and then I try
to divine the original question from those answers.

Maybe using a formula like:
=SUM(COUNTIF(D1,"*"&MyList&"*"))
would work.

Still with that list of words on a separate sheet.

Biff wrote:

The way that I read the OP is that there is more than just a single word in
the cells. I could be wrong!

Biff

"Dave Peterson" wrote in message
...
I would put my list of words on another worksheet (hidden???) and give that
range a nice name--say myList.

Then I'd use format|conditional formatting with a formula like:
=MATCH(D1,myList,0)


The Moose wrote:

I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb


--

Dave Peterson


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default conditional formatting -- testing for multiple words

Thanks, guy.

I, too, found out that the arrays didn't work.

I haven't had a chance to try the other yet. I'm trying to do too many
things at once -- keep getting sidetracked -- character flaw, I guess
:GRIN:

I WILL post back after trying the other suggestions to let you all know
what worked.

Thanks again.

Barb


Dave Peterson wrote:
I try not to read the original question--just read the responses and then I try
to divine the original question from those answers.

Maybe using a formula like:
=SUM(COUNTIF(D1,"*"&MyList&"*"))
would work.

Still with that list of words on a separate sheet.

Biff wrote:

The way that I read the OP is that there is more than just a single word in
the cells. I could be wrong!

Biff

"Dave Peterson" wrote in message
...
I would put my list of words on another worksheet (hidden???) and give that
range a nice name--say myList.

Then I'd use format|conditional formatting with a formula like:
=MATCH(D1,myList,0)


The Moose wrote:

I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb

--

Dave Peterson


--

Dave Peterson


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default conditional formatting -- testing for multiple words

Thank you, thank you, thank you!!!

It WORKS :LOL:

=SUM(COUNTIF(B1,"*"&mylist&"*")) -- highlights just the first colum.

What I wanted was the whole row to highlight so that it REALLY stands
out. A little tweaking of your formula, and I got EXACTLY what I
wanted:
=SUM(COUNTIF($B1,"*"&mylist&"*"))

Thanks so much.

Barb


Dave Peterson wrote:
I try not to read the original question--just read the responses and then I try
to divine the original question from those answers.

Maybe using a formula like:
=SUM(COUNTIF(D1,"*"&MyList&"*"))
would work.

Still with that list of words on a separate sheet.

Biff wrote:

The way that I read the OP is that there is more than just a single word in
the cells. I could be wrong!

Biff

"Dave Peterson" wrote in message
...
I would put my list of words on another worksheet (hidden???) and give that
range a nice name--say myList.

Then I'd use format|conditional formatting with a formula like:
=MATCH(D1,myList,0)


The Moose wrote:

I have a spreadsheet with a list of products. Column D contains the
product names.

I want to format the rows to stand out if a particular word is in the
product name. I've got this to work:
=FIND("Chef",$D1)

What I'd really like to do is have the formula look for a variety of
different products; e.g., "Chef", "Apple", "Lodge" ... etc.

Is there any way to do that??

Thanks.

Barb

--

Dave Peterson


--

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
Conditional Formatting in Bar Charts with Labeling SteveChap Charts and Charting in Excel 2 April 20th 06 03:22 PM
conditional formatting for cells containing words LawW Excel Discussion (Misc queries) 2 March 21st 06 06:43 PM
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM
Copying conditional formatting...HELP PLEASE!!!! trixiebme Excel Worksheet Functions 3 March 24th 05 01:53 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM


All times are GMT +1. The time now is 03:03 AM.

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"