Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Tina
 
Posts: n/a
Default Comparing two lists in excel that don't match exactly

I'm running Excel 2003. I'm trying to compare two lists that don't match
exactly. I've been using Vlookup, but if the cell content of my search is
not the same as the array I'm comparing it to, it does not find it.
For example: I'm searching for "Mary Smith". The array contains "Smith,
Mary". VLookup won't find the record because it doesn't match exactly what
I'm searching for. Because I'm comparing thousands of records against an
extremely large database, it's not feasable for me to just do a search.
Any insight?

Thanks,
--
Tina
  #2   Report Post  
Barb R.
 
Posts: n/a
Default

Why don't you try parsing "Mary Smith" into "Mary" and "Smith" in adjacent
columns and then concatenate them again

A1 = Mary Smith
B1 = Mary
C1 = Smith
D1 = C1 & ", " & B1

When you are done, try the lookup again.

"Tina" wrote:

I'm running Excel 2003. I'm trying to compare two lists that don't match
exactly. I've been using Vlookup, but if the cell content of my search is
not the same as the array I'm comparing it to, it does not find it.
For example: I'm searching for "Mary Smith". The array contains "Smith,
Mary". VLookup won't find the record because it doesn't match exactly what
I'm searching for. Because I'm comparing thousands of records against an
extremely large database, it's not feasable for me to just do a search.
Any insight?

Thanks,
--
Tina

  #3   Report Post  
Tina
 
Posts: n/a
Default

Barb,

Thanks for the quick reply. Unfortunately, the database I'm searching
against doesn't always have a comma separating the names. Sometimes there's
a space, sometimes the names are inverted. There are also company names
listed with "Corp.", "Corp", "Corporation", etc. . I guess what I'm really
looking for is for the search to bring back any instance of "Mary" or
"Smith", regardless of how it's listed in the database record. Not sure if
that's possible though.
--
Tina


"Barb R." wrote:

Why don't you try parsing "Mary Smith" into "Mary" and "Smith" in adjacent
columns and then concatenate them again

A1 = Mary Smith
B1 = Mary
C1 = Smith
D1 = C1 & ", " & B1

When you are done, try the lookup again.

"Tina" wrote:

I'm running Excel 2003. I'm trying to compare two lists that don't match
exactly. I've been using Vlookup, but if the cell content of my search is
not the same as the array I'm comparing it to, it does not find it.
For example: I'm searching for "Mary Smith". The array contains "Smith,
Mary". VLookup won't find the record because it doesn't match exactly what
I'm searching for. Because I'm comparing thousands of records against an
extremely large database, it's not feasable for me to just do a search.
Any insight?

Thanks,
--
Tina

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to print lists including a barcode in Excel. GraemeD Excel Discussion (Misc queries) 2 April 28th 05 11:04 PM
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
In Excel, lists should be sorted. David Paul Excel Worksheet Functions 1 April 13th 05 03:01 PM
How do I customize the X-axis in excel to match my dataset? cathy Charts and Charting in Excel 1 January 14th 05 01:25 AM
Aligning Two Lists in Excel Rich Excel Discussion (Misc queries) 2 December 4th 04 05:44 PM


All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"