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
808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
rspahitz earned 250 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 250 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

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…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
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…

739 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