Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cesare
 
Posts: n/a
Default Excel: how to merge data from 2 workbooks with 1 col. in common?

I've got two separate workbooks. Each workbook contains unique columns except
for one, which is a "key" column, or an id field.
Example: I have a client # column in both workbooks. In the first workbook,
I also have first name and last name columns. In the second column, I have
phone number and address columns. How do I merge the two workbooks into one
so that for each client # I have their first name, last name, phone number,
and address.
  #2   Report Post  
bigwheel
 
Posts: n/a
Default

Well, I think I'd start by getting all the data into one workbook. With both
workbooks open, select the worksheet with the phone number and address then
click EditMove or Copy Sheet. Select the target book under 'To Book' and
select it's required destination under 'Before Sheet' Check the 'Create a
copy' checkbox then click OK

Once the data is all in one place you can copy the require columns to where
ever you want them


  #3   Report Post  
Fred
 
Posts: n/a
Default

Use VLOOKUP

I assume second worksheet has ColA: ID #, ColB: Phone #, ColC: Address

Sort the second worksheet by ID number and name a range covering A1 to last
row in C as 'data'.

In the first worksheet D1 enter
=VLOOKUP(A1,Sheet2!data,2,false) - this will return the phone number if ID
is present.

In E1 enter
=VLOOKUP(A1,Sheet2!data,3,false) - this will retun the address if ID is
present.

Copy D1 and E1 down all rows - job done.

HTH

"Cesare" wrote:

I've got two separate workbooks. Each workbook contains unique columns except
for one, which is a "key" column, or an id field.
Example: I have a client # column in both workbooks. In the first workbook,
I also have first name and last name columns. In the second column, I have
phone number and address columns. How do I merge the two workbooks into one
so that for each client # I have their first name, last name, phone number,
and address.

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
pasting excel data in a powerpoint slide James Excel Discussion (Misc queries) 4 January 28th 05 03:23 PM
Help with data not getting plotted Scott Ehrlich Excel Discussion (Misc queries) 2 January 25th 05 06:17 AM
Fetching External Data from Excel Sri Excel Discussion (Misc queries) 2 January 3rd 05 12:46 PM
Refreshing Access data in Excel Jimmy G Excel Discussion (Misc queries) 0 December 21st 04 04:53 PM


All times are GMT +1. The time now is 02:29 PM.

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"