Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel 2007 Compare two Worksheets for Common Data and have Excel copy and paste info from one to the other

Posted on 2011-03-24
3
Medium Priority
?
819 Views
Last Modified: 2013-11-05
I have an Excel file with two worksheets that contain some common data but not the same number of rows and not necessarily in the same order.  I need to match info from the two sheets and copy info from one to the other.  One of the worksheet has 3003 rows and the other has 2565 rows so I really don’t want to do this manually.  How can I have Excel check two worksheets for common data, and then copy information from one of the sheets to the other? I am working in Excel 2007.  Here is the information on the two sheets and on what I actually need to do:

Sheet one
Column A contains Part Numbers
Column B is Blank
Column C is Blank
Column D is Blank
Column E is Blank

Sheet two
Column A contains Part Numbers
Column B contains Manufacturers
Column C contains Cross Reference Info
Column D contains Manufacturers
Column E contains Cross Reference Info


I need excel to check Column A of Sheet one against Column A of Sheet two; When it finds common data (the same part number), I need it to copy the information from columns B,C,D,E of Sheet two and paste it into columns B,C,D,E of Sheet one.

Because the information in the real file is confidential, I have created a sample file that doesn't show the actual data.  Can anyone help me with a formula or Macro that will do this?  I have very little time to get this done and it’s urgent for my company.
 Example-for-Experts-Exchange.xlsx
0
Comment
Question by:carilou
3 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 1000 total points
ID: 35207807
this is a job for vlookup:

cell B1 formula =VLOOKUP(A1, Sheet2!A:E, 2, FALSE)
cell C1 formula =VLOOKUP(A1, Sheet2!A:E, 3, FALSE)
cell D1 formula =VLOOKUP(A1, Sheet2!A:E, 4, FALSE)
cell E1 formula =VLOOKUP(A1, Sheet2!A:E, 5, FALSE)

Then copy the formulas down
0
 
LVL 6

Assisted Solution

by:KnutsonBM
KnutsonBM earned 1000 total points
ID: 35207830
vlookup is what you are looking for a i believe, see attached
with-vlookup.xls
0
 

Author Closing Comment

by:carilou
ID: 35208079
Thank you so much!  You were both extremely helpful!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question