Formula to pick up if partial text is contained in a list of entries

tigerzen

Board Regular
Joined
Mar 8, 2023
Messages
165
Office Version
  1. 365
Platform
  1. Windows
Book1
ABCD
1List 1On ListList 2
2PeteYesPeter Smith
3SamYesSamuel
4JackNoah
5TomKaren Brown
6FredYesHerbert
7Frederick Haynes
Sheet1


Looking for a formula to return if a match is found from List 2. The desired result is contained in Column B, I tried COUNTIF but unsuccessful.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi @tigerzen , thanks for posting on the forum.

The desired result is contained in Column B, I tried COUNTIF

I show you 2 options:

Dante Amor
ABCD
1List 1On ListOn ListList 2
2PeteYESYESPeter Smith
3SamYESYESSamuel
4Jack  Noah
5Tom  Karen Brown
6FredYESYESHerbert
7Frederick Haynes
8
9
10
Amor
Cell Formulas
RangeFormula
B2:B6B2=IF(COUNTIF(D:D,"*"&A2&"*"),"YES","")
C2:C6C2=IF(ISNUMBER(MATCH("*" & A2 & "*",D:D,0)),"YES","")


--------------
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
--------------
 
Last edited:
Upvote 0
Solution
Hi @tigerzen , thanks for posting on the forum.



I show you 2 options:

Dante Amor
ABCD
1List 1On ListOn ListList 2
2PeteYESYESPeter Smith
3SamYESYESSamuel
4Jack  Noah
5Tom  Karen Brown
6FredYESYESHerbert
7Frederick Haynes
8
9
10
Amor
Cell Formulas
RangeFormula
B2:B6B2=IF(COUNTIF(D:D,"*"&A2&"*"),"YES","")
C2:C6C2=IF(ISNUMBER(MATCH("*" & A2 & "*",D:D,0)),"YES","")


--------------
Let me know the result and I'll get back to you as soon as I can.
Sincerely
Dante Amor
--------------
Thank you Dante, my Countif formula was very similar to yours but didn't quite get there. Appreciate the second solution too.
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,644
Members
449,461
Latest member
kokoanutt

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