Merge rows from 2 XLS files using a common key field.

G

Gene

I have 2 Excel files with customer records. Each file has a common customer
number and the other fields are different. I would like to combine the data
into one file by using the common customer number to link the related records
from the 2 spreadsheets.
 
S

ShaneDevenshire

Hi,

If there is a unique identifier you might consider using
=VLOOKUP(Key,Table,Col,Type)
Where you place the formula in one file and the Key is the common
identifier, Table is the data in the other file (the Key must be found in the
leftmost column of the Table range), Col is the column of the Table you want
to return, counted from left to right in the table range, Type indicates
whether you want an approximate or an exact match, in your case exact, so you
should use False (or 0).

Cheers,
Shane Devenshire
Microsoft Excel MVP
 

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

Top