Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Malvaro
 
Posts: n/a
Default Question regarding wildcard in multi-criteria IF formula


For whatver reason the wildcard doesn't seem to be pulling alternative
spellings into the TRUE/FALSE criteria check. Column AG contains many
various companies, which then need to be sorted into two classes (N or
D).

My question is regarding the wildcard, which doesn't seem to be working
properly. If column AG contains: BestBuy, Best Buy, and Best Buy Co...
the formula is counting each of them as a FALSE statement because the
formula is only pulling the exact phrase of "Best" instead of "Best
(*everything after it)".

This is my current Excel 2003 formula:

=IF(OR(AG5="Good*",AG5="Best*",AG5="Circuit*"),"N" ,"D")

What do I need to change so that the formula will pull in the wildcard
results of Best_Buy_, Best _Buy_, and Best__Buy_Co_ and specify them as
a TRUE statement and list "N" as the final result? :)


--
Malvaro
------------------------------------------------------------------------
Malvaro's Profile: http://www.excelforum.com/member.php...o&userid=29589
View this thread: http://www.excelforum.com/showthread...hreadid=492904

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default Question regarding wildcard in multi-criteria IF formula

=IF(ISNUMBER(SEARCH("Best",AG5)),"N","D")

Malvaro wrote:
For whatver reason the wildcard doesn't seem to be pulling alternative
spellings into the TRUE/FALSE criteria check. Column AG contains many
various companies, which then need to be sorted into two classes (N or
D).

My question is regarding the wildcard, which doesn't seem to be working
properly. If column AG contains: BestBuy, Best Buy, and Best Buy Co...
the formula is counting each of them as a FALSE statement because the
formula is only pulling the exact phrase of "Best" instead of "Best
(*everything after it)".

This is my current Excel 2003 formula:

=IF(OR(AG5="Good*",AG5="Best*",AG5="Circuit*"),"N" ,"D")

What do I need to change so that the formula will pull in the wildcard
results of Best_Buy_, Best _Buy_, and Best__Buy_Co_ and specify them as
a TRUE statement and list "N" as the final result? :)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Question regarding wildcard in multi-criteria IF formula

You can use COUNTIF

=COUNTIF(A1,"Best*")

will return 1 for a hit,

=COUNTIF(A1,"Best*")=1

will retrun TRUE

you can obviosuly do that for a range as well

=COUNTIF(A1:A10,"Best*")

or you can use IF plus some other functions

=IF(LEFT(A1,4)="Best",1,0)

this will find any occurrence of Best

=IF(ISENUMBER(SEARCH("Best",A1)),1,0)


--

Regards,

Peo Sjoblom

"Malvaro" wrote in
message ...

For whatver reason the wildcard doesn't seem to be pulling alternative
spellings into the TRUE/FALSE criteria check. Column AG contains many
various companies, which then need to be sorted into two classes (N or
D).

My question is regarding the wildcard, which doesn't seem to be working
properly. If column AG contains: BestBuy, Best Buy, and Best Buy Co...
the formula is counting each of them as a FALSE statement because the
formula is only pulling the exact phrase of "Best" instead of "Best
(*everything after it)".

This is my current Excel 2003 formula:

=IF(OR(AG5="Good*",AG5="Best*",AG5="Circuit*"),"N" ,"D")

What do I need to change so that the formula will pull in the wildcard
results of Best_Buy_, Best _Buy_, and Best__Buy_Co_ and specify them as
a TRUE statement and list "N" as the final result? :)


--
Malvaro
------------------------------------------------------------------------
Malvaro's Profile:

http://www.excelforum.com/member.php...o&userid=29589
View this thread: http://www.excelforum.com/showthread...hreadid=492904



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Question regarding wildcard in multi-criteria IF formula

One way:

=IF(SUM(COUNTIF(Ag5,{"best*","Good*","circuit*"})) 0,"N","D")



Malvaro wrote:

For whatver reason the wildcard doesn't seem to be pulling alternative
spellings into the TRUE/FALSE criteria check. Column AG contains many
various companies, which then need to be sorted into two classes (N or
D).

My question is regarding the wildcard, which doesn't seem to be working
properly. If column AG contains: BestBuy, Best Buy, and Best Buy Co...
the formula is counting each of them as a FALSE statement because the
formula is only pulling the exact phrase of "Best" instead of "Best
(*everything after it)".

This is my current Excel 2003 formula:

=IF(OR(AG5="Good*",AG5="Best*",AG5="Circuit*"),"N" ,"D")

What do I need to change so that the formula will pull in the wildcard
results of Best_Buy_, Best _Buy_, and Best__Buy_Co_ and specify them as
a TRUE statement and list "N" as the final result? :)

--
Malvaro
------------------------------------------------------------------------
Malvaro's Profile: http://www.excelforum.com/member.php...o&userid=29589
View this thread: http://www.excelforum.com/showthread...hreadid=492904


--

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
I have a question regarding countif formula. Fahad Farid Ansari Excel Worksheet Functions 6 October 1st 05 11:57 PM
Formula Question blackgold21 Excel Discussion (Misc queries) 17 August 28th 05 12:05 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Countif Formula with changing criteria Stephen Excel Discussion (Misc queries) 2 May 2nd 05 07:24 AM


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