Search and "mark" sheet with 35k rows of data against 1k names for partial match?

xdriver

Board Regular
Joined
Mar 21, 2014
Messages
73
Office Version
  1. 365
Platform
  1. MacOS
I have a sheet with about 35k rows and 100 columns containing names of contacts along with different kinds of data. Each row has up to 4 cells which include a combined first and last name in a single cell (john doe) (mary jane) etc.

I have another list of about 1k names, such as (doe) or (jane) and I would like to mark the row of the list with 35k names if one of the names from the 1k list is a partial match. None of the 1k list is (john doe), but is simply (doe). The name can appear in any of the 4 cells. I don't mind adding a column, or even extracting all the matching rows into another sheet to create a new database of names and data.

What would the most efficient way of doing this be?

I came across this posting, but I am unsure if this would work with some kind of modification or even be efficient with such a large sheet of data. How to filter a table with two email columns against a list of emails

Thank you
 
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Note, the match from the 1k list must be exact but it may be partial, for instance, it must match the 35k list with either "john" or "doe" but not "joh".

I have figured out using xlookup to make this work in a single column out of the 4 columns in the larger list, but it is returning partials such as "joh" or "ohn" and I do not want that.
 
Upvote 0
This is what I was trying to use =XLOOKUP(TRUE,ISNUMBER(SEARCH('Name Lists'!$A$3:$A$1012,Data!H2)),'Name Lists'!$B$3:$B$1012)

I would prefer it returned the name instead of the number related to the name in the Name List, or simply "true"

2023_11_17 - testing.xlsx
HI
1Owner 1Owner 2
2Frederick H SmithLisa G Char-Smith
3Jeffrey A DanielsCarrie Martin
4Scott A JosephShelley M Joseph
5Rivka KandinovBoris Kandinov
6Frank&s Magullion RetFrank Magullion Tr
7Michael EscovitzPinky Patel
8Angelo L PetullaTakako Petulla
9Muhammad H UsmaniTuba S Abbasi
10Guichen Z WongSanford Wong
Data


2023_11_17 - testing.xlsx
AB
1NamesCell
2Smith2
3Nushi3
4Wei4
5Yan5
Name Lists
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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