IS NUMBER SEARCH with two conditions

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I'd like to write a formula which returns a value in a cell, depending on whether certain text is in two different cells in another tab.

The formula I've created is below:

It's meant to return the text in cell A3 from the "Scenarios" tab,

IF the words "As Is" are in cell A3 of the Scenarios tab AND
IF the word "Checked" in in cell C3 of the Scenarios tab.

Is there a way to do this? Thanks in advance.

=IF(and(ISNUMBER(SEARCH("As is",Scenarios!A3),ISNUMBER(SEARCH("Checked",Scenarios!c3),Scenarios!A3,""))))

Mr 2017. :cool:
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Looks like some misplaced )

=IF(and(ISNUMBER(SEARCH("As is",Scenarios!A3),ISNUMBER(SEARCH("Checked",Scenarios!c3),Scenarios!A3,""))))

Try
=IF(and(ISNUMBER(SEARCH("As is",Scenarios!A3)),ISNUMBER(SEARCH("Checked",Scenarios!c3))),Scenarios!A3,"")
 
Last edited:
Upvote 0
...........
 
Last edited:
Upvote 0
Hi

Thanks for the prompt response.

I tried that, but it returns a blank instead of the text in cell A3 of the Scenarios tab?
 
Upvote 0
Then one of the two searches (or both) failed to find the strings.
I'd suggest using the formula evaluation tool to watch the formula execute each step.
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,257
Members
448,880
Latest member
aveternik

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