Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Matching records based on multiple columns

I need to compare records from two different sets of data.
Set 1 is a master list and Set 2 is a sublist of the master.
The comparison involves three columns from each set; Tag#, Location, S/N.
I want to be able to match records from Set 2 to Set 1, ending with an
additional column that shows if there is a match (true/false).

What is the most efficient way of completing this task? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Matching records based on multiple columns

I would add two helper columns to each worksheet.

Say new columns A and B in both sheets.

In column A, I'd concatenate the 3 fields that make up the keys:

=c2&"---"&d2&"---"&e2
(the "---" is a unique string to make sure the concatenated strings don't match
just by chance.)

Then drag down as far as I needed.

Then I could use a formula in column B:

=isnumber(match(a2,sheet2!a:a,0))
drag down

And then filter by this column.

Doing this on both sheets would show where were missing (or there) on the
opposite sheet.

looking for answers wrote:

I need to compare records from two different sets of data.
Set 1 is a master list and Set 2 is a sublist of the master.
The comparison involves three columns from each set; Tag#, Location, S/N.
I want to be able to match records from Set 2 to Set 1, ending with an
additional column that shows if there is a match (true/false).

What is the most efficient way of completing this task? Thanks


--

Dave Peterson
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
Sum based upon matching data in different columns Stan Excel Worksheet Functions 1 May 1st 08 04:49 AM
Matching records in diff columns Newtonboy Excel Discussion (Misc queries) 2 July 16th 06 03:28 PM
Matching multiple columns Rothman Excel Worksheet Functions 5 April 13th 06 12:39 PM
return multiple records matching multiple criteria Karthik Excel Worksheet Functions 2 March 22nd 06 04:42 PM
Extract multiple records matching criteria from list William DeLeo Excel Worksheet Functions 12 June 30th 05 02:35 PM


All times are GMT +1. The time now is 09:02 AM.

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

About Us

"It's about Microsoft Excel"