Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Can I use an OR function with SEARCH in conditional formatting?

I am creating a conditional format using the thfe following formula

=SEARCH("rejected",$F4)

I also need the cell to be highlighted if F4 contains the word cancelled as
well.

Brain not in gear can't work it out.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Can I use an OR function with SEARCH in conditional formatting?

Hi,

Try this formula in conditional formatting

OR(ISNUMBER(SEARCH("rejected",A10)),ISNUMBER(SEARC H("cancelled",A10)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"RAYCV" wrote in message
...
I am creating a conditional format using the thfe following formula

=SEARCH("rejected",$F4)

I also need the cell to be highlighted if F4 contains the word cancelled
as
well.

Brain not in gear can't work it out.

Thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Can I use an OR function with SEARCH in conditional formatting?

If you want OR, try
=OR(ISNUMBER(SEARCH("rejected",$F4)),ISNUMBER(SEAR CH("cancelled",$F4)))
You said "as well", so if you want AND, change OR to AND in the above
formula.
--
David Biddulph

"RAYCV" wrote in message
...
I am creating a conditional format using the thfe following formula

=SEARCH("rejected",$F4)

I also need the cell to be highlighted if F4 contains the word cancelled
as
well.

Brain not in gear can't work it out.

Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Can I use an OR function with SEARCH in conditional formatting?

A few keystrokes shorter:

=COUNTIF($F4,"*rejected*")+COUNTIF($F4,"*cancelled *")

=COUNT(SEARCH("rejected",$F4),SEARCH("cancelled",$ F4))

--
Biff
Microsoft Excel MVP


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
If you want OR, try
=OR(ISNUMBER(SEARCH("rejected",$F4)),ISNUMBER(SEAR CH("cancelled",$F4)))
You said "as well", so if you want AND, change OR to AND in the above
formula.
--
David Biddulph

"RAYCV" wrote in message
...
I am creating a conditional format using the thfe following formula

=SEARCH("rejected",$F4)

I also need the cell to be highlighted if F4 contains the word cancelled
as
well.

Brain not in gear can't work it out.

Thanks in advance





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 with text search Ed Excel Discussion (Misc queries) 7 September 24th 08 05:38 PM
Conditional formatting on a function James Silverton[_2_] Excel Discussion (Misc queries) 2 March 10th 08 05:44 PM
Conditional formatting on a function James Silverton[_2_] Excel Discussion (Misc queries) 3 March 7th 08 08:19 PM
Help on a function with Conditional Formatting nemadrias Excel Worksheet Functions 1 August 10th 06 08:55 PM
Conditional Formatting "OR" function Baz Masterson Excel Worksheet Functions 5 November 13th 04 04:20 PM


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