Technology Get the latest on technology, electronics and software…

Excel data merging help

Old Apr 22, 2008 | 06:37 PM
  #1  
vp911's Avatar
Thread Starter
Suzuka Master
 
Joined: Mar 2004
Posts: 5,682
Likes: 2
Excel data merging help

I have two excel files:

file 1:
Column 1 has ID
Column 2 has name
Column 3 has status

file 2:
Column 1 has ID
Column 2 has Type

The ID in both files are the same, I want to merge the files, so the names corresponding to the IDs appear in column 3 of the second file.

I think this can be done with vlookup; however, I'm not sure what formula to use.

Any suggestions?
Reply
Old Apr 22, 2008 | 07:44 PM
  #2  
Jonesi's Avatar
Senior Moderator
 
Joined: Jul 2003
Posts: 19,827
Likes: 1
From: Pittsburgh, PA
Can't you just data sort by ID on both then just copy the column needed into the other file?




(I'm assuming the ID data is the same.)
Reply
Old Apr 22, 2008 | 07:57 PM
  #3  
Bearcat94's Avatar
AZ Community Team
 
Joined: May 2007
Posts: 32,488
Likes: 7,771
From: N35°03'16.75", W 080°51'0.9"
Use Vlookup. Let me see if I can work out a formula.

brb
Reply
Old Apr 22, 2008 | 08:05 PM
  #4  
Bearcat94's Avatar
AZ Community Team
 
Joined: May 2007
Posts: 32,488
Likes: 7,771
From: N35°03'16.75", W 080°51'0.9"
Edit by Jonesi: Look two posts down for updated info..



In the 1st file, make column D "Type"

Then:

=VLOOKUP(A2,[File2.xls]Sheet1!$A$2:$B$10,2,FALSE)

And drag that down Column D

Reply
Old Apr 22, 2008 | 08:05 PM
  #5  
DelawareCLS's Avatar
Racer
 
Joined: Jan 2003
Posts: 292
Likes: 0
From: Delaware
Originally Posted by vp911
I have two excel files:

file 1:
Column 1 has ID
Column 2 has name
Column 3 has status

file 2:
Column 1 has ID
Column 2 has Type

The ID in both files are the same, I want to merge the files, so the names corresponding to the IDs appear in column 3 of the second file.

I think this can be done with vlookup; however, I'm not sure what formula to use.

Any suggestions?
in file 2, column 3, type =vlookup(=<column A row 1 value>,<full range file 1 columns 1-3 all rows, 1, )

this'll return ID. if you put 2 at the end, it'll return name. likewise, 3=status. use '$' on the range values, then copy down column 3 in file 2.

Tough to describe, hope it makes sense.


Edit: don't use carrots to put things in parens, and look like a rookie compared to the previous post
Reply
Old Apr 22, 2008 | 08:13 PM
  #6  
Bearcat94's Avatar
AZ Community Team
 
Joined: May 2007
Posts: 32,488
Likes: 7,771
From: N35°03'16.75", W 080°51'0.9"
Sorry did the ass backwards from what you wanted.

Try this:
=VLOOKUP(A2,[File1.xls]Sheet1!$A$2:$B$10,2,FALSE)



I think this is what you asked for.
Reply
Old Apr 23, 2008 | 09:31 AM
  #7  
Rock2534's Avatar
Drifting
 
Joined: Dec 2002
Posts: 2,619
Likes: 15
From: Lehigh Valley, PA
Use the insert function feature for vlookup, it will bring up a dialog box for you to enter the parameters, that way you don't have to just type it in.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Yumcha
Automotive News
70
Dec 7, 2020 05:39 PM
08_UA7_Gr33k
Member Cars for Sale
13
Feb 11, 2016 02:17 PM
InFaMouSLink
Car Parts for Sale
6
Oct 27, 2015 06:52 PM
08_UA7_Gr33k
Member Cars for Sale
1
Sep 27, 2015 01:56 PM



All times are GMT -5. The time now is 04:53 PM.