Combine two statements with OR function (I think)

comtam

New Member
Joined
May 13, 2017
Messages
2
Hi,

I have sifted through many forums and spent lots of trial and error time trying to figure this out to no avail. Hoping someone can help me here.

I want to combine both of the following statements in one cell (using the OR function?). Separately, they work great, but I want all of the conditions to be in one formula, and (obviously) can't figure it out:

=IF(ISNUMBER(SEARCH("as",G340)),"01","0")

OR

IF(AND(ISNUMBER(SEARCH("mc",A340,ISNUMBER(SEARCH("student",G340))))),"1","0")

Thanks!!!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
try
=OR(ISNUMBER(SEARCH("as",G340)),AND(ISNUMBER(SEARCH("mc",A340,ISNUMBER(SEARCH("student",G340))))))*1
 
Upvote 0
try
=OR(ISNUMBER(SEARCH("as",G340)),AND(ISNUMBER(SEARCH("mc",A340,ISNUMBER(SEARCH("student",G340))))))*1



Wow, that worked perfectly! Thank you so much, Dave!! You have no idea how many hours (I'm a complete novice) I've spent on this, and you just solved my problem in about 15 minutes.

Again, thank you so much!!
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,666
Members
449,114
Latest member
aides

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