MATCHING DATA IN COLUMNS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 spreadsheets containing names, addresses, d.o.b. etc as column
headings.

I want to identify in the first spreadsheet those records where the data
under the column headings: surname, forename,d.o.b. exactly match any records
in the second spreadsheet.

It would be useful if I could locate the identified rows to a third
spreadsheet.

Spreadsheet 1 has 450 rows, spreadsheet 2 has 14,000 rows.

Any help much appreciated
 
One play to try ..

Assume the tables in Sheet1 (450 rows) and Sheet2 (14000 rows)
are identically structured in cols A to C, with headers in A1:C1,
data from row2 down, viz.:

SurName ForeName DOB
SName1 FName1 Date1
SName2 FName2 Date2
SName3 FName3 Date3
etc

In Sheet1
-----------
Use an empty col to the right, say, col F

Put in the formula bar for F2,
then array-enter the formula by pressing CTRL+SHIFT+ENTER
(instead of just pressing ENTER):

=IF(ISNUMBER(MATCH(1,(Sheet2!$A$2:$A$14001=A2)*(Sheet2!$B$2:$B$14001=B2)*(Sh
eet2!$C$2:$C$14001=C2),0)),ROW(),"")

Copy F2 down until the last row of data (to F451)
(Leave F1 empty)

In a new Sheet3
----------------
With the same headers placed in A1:C1

Put in A2:
=IF(ISERROR(SMALL(Sheet1!$F:$F,ROW(A1))),"",INDEX(Sheet1!A:A,MATCH(SMALL(She
et1!$F:$F,ROW(A1)),Sheet1!$F:$F,0)))

Copy A2 across to C2, fill down to C451
(cover the same range size as in Sheet1)

Sheet3 will return the desired results, all neatly bunched at the top

Adapt to suit ..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top