Isnumber error

skuddyb

New Member
Joined
Sep 29, 2015
Messages
39
Hi Guys,

I have a list of 26,000 small retailers in column K. I need to exclude any that are symbol groups such as Nisa, CostCutter etc. I used this to return Yes or No i column AX as to whether they are suitable or not.

It returns #VALUE!

=IF(ISNUMBER(SEARCH("(spar)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(budgens)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(londis)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(mccoll)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(one stop)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(thorntons)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(costcutter)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(mace)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(majestic)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(post office)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(hospice)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(hospital)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(wine)",K2)),"Yes","No"), IF(ISNUMBER(SEARCH("(victoria)",K2)),"Yes","No")

However if i use just one section for example "spar" it works.

Please help.

:)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi, here is an alternative you could try:

Code:
=IF(SUM(COUNTIF(K2,"*"&{"(spar)","(budgens)","(londis)","(mccoll)","(one stop)","(thorntons)","(costcutter)","(mace)","(majestic)","(post office)","(hospice)","(hospital)","(wine)","(victoria)"}&"*")),"Yes","No")
 
Upvote 0
hi
you should use this formula:
=IF(ISNUMBER(SEARCH("(spar)",K2)),"Yes",IF(ISNUMBER(SEARCH("(budgens)",K2)),"Yes",IF(ISNUMBER(SEARCH("(londis)",K2)),"Yes",IF(ISNUMBER(SEARCH("(mccoll)",K2)),"Yes",IF(ISNUMBER(SEARCH("(one stop)",K2)),"Yes",IF(ISNUMBER(SEARCH("(thorntons)",K2)),"Yes",IF(ISNUMBER(SEARCH("(costcutter)",K2)),"Yes",IF(ISNUMBER(SEARCH("(mace)",K2)),"Yes",IF(ISNUMBER(SEARCH("(majestic)",K2)),"Yes",IF(ISNUMBER(SEARCH("(post office)",K2)),"Yes",IF(ISNUMBER(SEARCH("(hospice)",K2)),"Yes",IF(ISNUMBER(SEARCH("(hospital)",K2)),"Yes",IF(ISNUMBER(SEARCH("(wine)",K2)),"Yes",IF(ISNUMBER(SEARCH("(victoria)",K2)),"Yes","No"))))))))))))))
 
Upvote 0
Hi, here is an alternative you could try:

Code:
=IF(SUM(COUNTIF(K2,"*"&{"(spar)","(budgens)","(londis)","(mccoll)","(one stop)","(thorntons)","(costcutter)","(mace)","(majestic)","(post office)","(hospice)","(hospital)","(wine)","(victoria)"}&"*")),"Yes","No")


Hi, This doesn't return #VALUE! any more but only seems to search for "spar" and none of the other criteria?
 
Upvote 0
Or,

=IF(OR(ISNUMBER(SEARCH({"(spar)","(budgens)","(londis)","(mccoll)","(one stop)","(thorntons)","(costcutter)","(mace)","(majestic)","(post office)","(hospice)","(hospital)","(wine)","(victoria)"},K2))),"Yes","No")

Regards
 
Upvote 0
hi
you should use this formula:
=IF(ISNUMBER(SEARCH("(spar)",K2)),"Yes",IF(ISNUMBER(SEARCH("(budgens)",K2)),"Yes",IF(ISNUMBER(SEARCH("(londis)",K2)),"Yes",IF(ISNUMBER(SEARCH("(mccoll)",K2)),"Yes",IF(ISNUMBER(SEARCH("(one stop)",K2)),"Yes",IF(ISNUMBER(SEARCH("(thorntons)",K2)),"Yes",IF(ISNUMBER(SEARCH("(costcutter)",K2)),"Yes",IF(ISNUMBER(SEARCH("(mace)",K2)),"Yes",IF(ISNUMBER(SEARCH("(majestic)",K2)),"Yes",IF(ISNUMBER(SEARCH("(post office)",K2)),"Yes",IF(ISNUMBER(SEARCH("(hospice)",K2)),"Yes",IF(ISNUMBER(SEARCH("(hospital)",K2)),"Yes",IF(ISNUMBER(SEARCH("(wine)",K2)),"Yes",IF(ISNUMBER(SEARCH("(victoria)",K2)),"Yes","No"))))))))))))))


Hi Mohammad, cheers for this but again, only seems to search for "spar" and none of the other criteria?
 
Upvote 0
Or,

=IF(OR(ISNUMBER(SEARCH({"(spar)","(budgens)","(londis)","(mccoll)","(one stop)","(thorntons)","(costcutter)","(mace)","(majestic)","(post office)","(hospice)","(hospital)","(wine)","(victoria)"},K2))),"Yes","No")

Regards


Hi, same as the other suggestions, just returns it for spar?
 
Upvote 0
Hi, This doesn't return #VALUE! any more but only seems to search for "spar" and none of the other criteria?

Hi, it seems to work OK for me.


Excel 2013
KL
2dsasd (londis) dsaYes
3dfs,'f,ds (wine) dsadsaYes
4dsl;df (thorntons) dsadYes
5sdadsa ds sda sdNo
6dsads dsa dsdaNo
7dsadsa (hospital) sdasaaYes
Sheet1
Cell Formulas
RangeFormula
L2=IF(SUM(COUNTIF(K2,"*"&{"(spar)","(budgens)","(londis)","(mccoll)","(one stop)","(thorntons)","(costcutter)","(mace)","(majestic)","(post office)","(hospice)","(hospital)","(wine)","(victoria)"}&"*")),"Yes","No")
 
Upvote 0
Create a list of the relevant search words in a range and name this range KEYWORDS. Once done that, invoke:

=IF(ISNUMBER(LOOKUP(9.99999999999999E+307,SEARCH(KEYWORDS,K2))),"Yes","No")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top