Return TRUE if a cell contains text OTHER THAN certain substrings

xavier_eales

New Member
Joined
Oct 21, 2018
Messages
1
Hi! :)

I'm new to this forum, but I've tried Googling and using other methods to find my answer without any luck.

I need to find whether a cell contains the text "Inbound", "Core" or "Outbound" as well as whether it contains AT LEAST ONE other word (each word is separated by a comma). So far, I can only figure out how to return TRUE if the cell contains one of the substrings "Inbound", "Core" or "Outbound" using the formula:

SUMPRODUCT(--ISNUMBER(SEARCH({"Inbound","Core","Outbound"},A1)))>0

But, I'm looking to add a condition to this formula that it should only return TRUE if it is the case that there is at least one other word in the cell.

For example, a cell might contain "Inbound, apple". This should return TRUE. However, if a cell contains "apple, banana" or "Inbound" only, then it should return FALSE.

Any help would be much appreciated! Thanks.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Welcome to the forum!

Excel Workbook
AB
1apple, bananaFALSE
2InboundFALSE
3Inbound, AppleTRUE
Tom
 
Upvote 0
In B1 control+shift+enter, not just enter, and copy down:

=IF(ISNUMBER(LOOKUP(9.99999999999999E+307,SEARCH(","&List&",",","&SUBSTITUTE(A1," ","")&","))),(LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+1-SUM(IF(ISNUMBER(SEARCH(","&List&",",","&SUBSTITUTE(A1," ","")&",")),1)))>0)

where List refers to a range which lists the relevant items like Inbound, Outbound, and Core.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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