isnumber query

fry

Active Member
Joined
Apr 25, 2007
Messages
411
Hi All

Can someone tell me how to have 2 options using isnumber.

I'm using ISNUMBER(SEARCH("SUBMITTED",N156)) but I'd like to have "SUPPLY" & "SUBMITTED"

Is this possible??

Thanks :)
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi All

Can someone tell me how to have 2 options using isnumber.

I'm using ISNUMBER(SEARCH("SUBMITTED",N156)) but I'd like to have "SUPPLY" & "SUBMITTED"

Is this possible??

Thanks :)

ISNUMBER(MATCH(N156,{"SUPPLY","SUBMITTED"},0))+0
 
Upvote 0
Hi Richard

Thanks for that but I should have mentioned that I'm using the function for conditional formatting and when I enter your suggestion excel tells me it's not allowed????????? :(
 
Upvote 0
Richard.....I should have added that the error message is "You may not use unions, intersections or array constants for conditional formatting criteria"
 
Upvote 0
Hi Barry

I also get the same error with yours...

My fault guys I should have mentioned the conditional formatting bit...

Maybe it's a bit too complicated for formatting :)
 
Upvote 0
You could just separate out the search terms ie:

=OR(ISNUMBER(SEARCH("SUPPLY",N156)),ISNUMBER(SEARCH("SUBMITTED",N156)))

and use this, but I quite like the idea of making a named formula and using that in CF eg:

Insert>Name>Define

Refers to box:

Code:
=OR(ISNUMBER(SEARCH({"SUPPLY","SUBMITTED"},INDIRECT("RC",False))))

and call it myFormula

then in CF use Formula Is and:

=myFormula

Or select a worksheet range eg Z1:Z2 and write your search terms in there (Z1=SUBMITTED,Z2=SUPPLY) and then reference that in the CF (ie $Z$1:$Z$2 instead of {"SUPPLY","SUBMITTED"}
 
Upvote 0
Thanks a lot Richard, it works a treat, and thanks to everyone for replying, it is much appreciated!!

:)
 
Upvote 0

Forum statistics

Threads
1,215,330
Messages
6,124,308
Members
449,152
Latest member
PressEscape

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