Help with ISNUMBER

wellen

New Member
Joined
Aug 9, 2017
Messages
3
I have a spreadsheet with a list of titles such as this one in A2
CLT Referrals May 2017

I have a formula working on that cell:

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000}span.s1 {color: #006107}span.s2 {color: #ab30d6}span.s3 {color: #0057d6}</style>=IF(ISNUMBER(SEARCH(Referrals,A2)), "Yes", "No")

the formula is returning no, when it should be returning yes.

It returns no whether I have the word Referrals in A2 or not.

Can you tell me what I'm doing wrong?

If it makes a difference, I'm the Excel for Mac 2011.

Thank you for any help you can give me!

Wellen

<colgroup><col></colgroup><tbody>
</tbody>
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Welcome to the Board!

If you are searching for the word Referrals, then it needs to be enclosed in double-quotes (all literal text needs to be enclosed in double-quotes). Otherwise, it thinks Referrals is an object (function, range, variable, etc).

So try:
Code:
[COLOR=#333333]=IF(ISNUMBER(SEARCH("Referrals",A2)), "Yes", "No")[/COLOR]
 
Upvote 0
Welcome to the forum.

You should probably try searching for the word with quotes around it. Like so:

SEARCH("Referrals",A2)

Otherwise, you are probably getting an error from the Search function but ISNUMBER is returning False because the error value is not a number.
 
Upvote 0
I have a spreadsheet with a list of titles such as this one in A2
CLT Referrals May 2017

I have a formula working on that cell:

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'; color: #000000}span.s1 {color: #006107}span.s2 {color: #ab30d6}span.s3 {color: #0057d6}</style>=IF(ISNUMBER(SEARCH(Referrals,A2)), "Yes", "No")

the formula is returning no, when it should be returning yes.

It returns no whether I have the word Referrals in A2 or not.

Can you tell me what I'm doing wrong?

If it makes a difference, I'm the Excel for Mac 2011.

Thank you for any help you can give me!

Wellen

<colgroup><col></colgroup><tbody>
</tbody>
You need to put quotes around the word "Referrals" otherwise Excel thinks it is a Defined Name.
 
Last edited:
Upvote 0
Welcome on the forum

=IF(ISNUMBER(SEARCH(
"Referrals",A2)), "Yes", "No")

You need to have a string as your first argument in a search function.
 
Upvote 0
Oh My Gosh! I can't believe I was being so stupid. Thank you!

May I ask for your indulgence once more?

If I wanted in that column to not only report whether the cell contained referral, but also resend, I know I need an If statement, but I'm struggling after that. Could you help me with that?
 
Upvote 0
=IF(OR(ISNUMBER(SEARCH("Referrals",A2)),ISNUMBER(SEARCH("Resend",A2))) "Yes", "No")

This could be a solution.
 
Upvote 0
If looking for BOTH:
Code:
[COLOR=#333333]=IF(AND(ISNUMBER(SEARCH("Referrals",A2)),[/COLOR]ISNUMBER(SEARCH("Resend",A2))), "Yes", "No")

If looking for one or the other:
Code:
[COLOR=#333333]=IF(OR(ISNUMBER(SEARCH("Referrals",A2)),[/COLOR]ISNUMBER(SEARCH("Resend",A2))), "Yes", "No")
 
Last edited:
Upvote 0
If looking for BOTH:
Code:
[COLOR=#333333]=IF(AND(ISNUMBER(SEARCH("Referrals",A2)),[/COLOR]ISNUMBER(SEARCH("Resend",A2))), "Yes", "No")

If looking for one or the other:
Code:
[COLOR=#333333]=IF(OR(ISNUMBER(SEARCH("Referrals",A2)),[/COLOR]ISNUMBER(SEARCH("Resend",A2))), "Yes", "No")
You can shorten those a bit...

One or the other
--------------------------------
=IF(OR(ISNUMBER(SEARCH({"Referrals","Resend"},A2))),"Yes", "No")

Both
--------------------------------
=IF(AND(ISNUMBER(SEARCH({"Referrals","Resend"},A2))),"Yes", "No")
 
Upvote 0

Forum statistics

Threads
1,215,250
Messages
6,123,887
Members
449,131
Latest member
leobueno

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