Join and Functions for Searching?

bairdgbaird

New Member
Joined
Sep 23, 2010
Messages
1
How can I search for LASTNAME and FIRSTNAME fields from TABLE_1 contained in NAME in TABLE_2?

TABLE_1 contains 80,000 records and has FIRSTNAME and LASTNAME fields.

TABLE_2 has 1 million records and just one field for NAME. Complicating matters, this NAME field is not uniformly formatted. NAME sometimes includes includes middle initials. It also sometimes contains two names, again, not always in a uniform fashion. So it could include the following entries:
1. Doe, John
2. Doe, John F.
3. John Doe
4. John F. Doe
5. Doe, John & Jill
6. Doe, John F. & Jill
7. Doe, Jill & John

I want to return matches where people from TABLE_1 appear in TABLE 2. I know I can do a series of left, right, mid, and instr functions to split NAME in TABLE_2, but with 1 million records that's a lot of work and am looking for a smarter approach.

Please help.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
My $.02; You need to go through the pains to normalize Table 2.
On 80000 records, every 800 mis-matches is a 1% error ratio.
At that, I would have little confidence in the final results.
You'll never get a stable data set the way the data is now.
 
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,306
Members
449,218
Latest member
Excel Master

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