Find a text in a sentence column

rnola

New Member
Joined
Oct 1, 2021
Messages
2
Office Version
  1. 2016
Hi,

I'm doing my first post here. Please excuse me if this is silly.

I have col A and col B as text fields. In col C I have a query list. I'm trying to find if the text values in both col A and col B exist anywhere in col C and then return a true or a false. Please see the attached sheet. Thank you gurus.

SEARCH TEXT.xlsx
ABCD
1FACT_TABLECORE_TABLEQUERYOUTPUT
2RESI_ADDREMP_DEMOSELECT A.SAL, A.ADDR FROM EMP_DSI A GROUP BY 1,2TRUE
3COUNTYEMP_QUALSELECT A.BAL, B.HLTH FROM EMP_FI A, EMP_SE B WHERE A.ID = B.IDFALSE
4EDUCATIONEMP_BIOSELECT A.RESI_ADDR, A.LOC FROM EMP_DEMO A GROUP BY 1,2FALSE
5
Sheet1
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(C:C,"*"&A2&"*",C:C,"*"&B2&"*")>0
 
Upvote 0
Solution
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Find a text in a sentence column
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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