CONCATENATE search question

wonderd

Board Regular
Joined
Oct 20, 2013
Messages
168
Hello all, I am trying to create a Concatenate formula that searches a cell for "PHRASE" or "PHRASE 2". If either phrase exist than the output is 43. Can someone show me what this formula would look like? It cant be two different if statements like
Code:
=CONCATENATE(IF(ISNUMBER(SEARCH("PHRASE",H2)),"43","")&IF(ISNUMBER(SEARCH("PHRASE 2",H2)),",43",""))

This will give me 43,43

I am looking for something like
Code:
=CONCATENATE(IF(ISNUMBER(SEARCH("PHRASE" OR "PHRASE 2",H2)),"43",""))

Is this possible?
 
Thanks but honestly its to complicates for me to keep track of.

So what was the point in this post, then, for which my formula gives the required results?

I am looking for

1. if H2 contains either Phrase 1 or phrase 2 in any case format the answer is 43
2. if H2 contains either Phrase 3 or phrase 4 in any case format the answer is 50
3.
if H2 contains BOTH Phrase 1 or phrase 2 and phrase 3 or phrase 4 in any case format the answer is 43,50
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
I explained why I cant use it, I also gave an example of the type of formula I'm looking for. If its not possible using the type of fomula I gave then I will have to improvise. Thank you for giving a solution but I should have been more specific.
 
Upvote 0
I explained why I cant use it, I also gave an example of the type of formula I'm looking for. If its not possible using the type of fomula I gave then I will have to improvise. Thank you for giving a solution but I should have been more specific.

Forgive me, but why are you restricted to a certain "type" of formula, may I ask? And if, as you say, it's not possible using the type of formula you want, would your "improvisation" not extend to considering other types?

Regards
 
Upvote 0
I still think a UDF or code would be a far better solution !!...love the posting..:LOL:
 
Upvote 0

Forum statistics

Threads
1,215,216
Messages
6,123,669
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