Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2013, 07:29 AM
bremen22 bremen22 is offline Combine Data From 2 Sheets into a new sheet Windows 7 64bit Combine Data From 2 Sheets into a new sheet Office 2007
Advanced Beginner
Combine Data From 2 Sheets into a new sheet
 
Join Date: Jul 2013
Posts: 44
bremen22 is on a distinguished road
Question Combine Data From 2 Sheets into a new sheet


I have a work book that contains 2 sheets of data. It contains pricing information for new and used parts. In these sheets the same number for the part might be on both sheets but there are two different prices. I am looking for a way to combine these sheets to contain only unique part numbers, but contain all of the prices.

I have created a sample work book to illustrate what I am trying to accomplish.
Attached Files
File Type: xlsx Sample Sheets 1.xlsx (13.6 KB, 9 views)
Reply With Quote
  #2  
Old 09-11-2013, 12:59 PM
BobBridges's Avatar
BobBridges BobBridges is offline Combine Data From 2 Sheets into a new sheet Windows 7 64bit Combine Data From 2 Sheets into a new sheet Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Easy-peasy, bremen22; you don't even need to write a VBA program for it. Oh, if I were going to do this many times I would certainly write a program to do it, but for a one-time chore here's what I'd do:

1) Make a list that comprises all the names on both lists. I'm assuming the actual data is pretty long, too long to do this manually, so probably the easiest way is:

a) On your Goal sheet, first copy all the names from the longer list (in this case the one on Sheet2).

b) On the shorter list, create a temporary column reading =MATCH(A2,Sheet2!A:A,0). The names that appear on both worksheets will have a number; those that appear on Sheet1 and not on Sheet2 will be marked #N/A.

c) Sort this sheet by the MATCH column so that all the ones marked #N/A are clustered together. Those are the ones you want; copy the names in that cluster to the bottom of the Goal sheet, then sort Sheet1 back into its original order (assuming that's important to you).

Sort the Goal sheet by name, if you want, but whether you do or not, the Goal sheet now has a list of all the names for Sheet1 and Sheet2.

2) Now that you have that list transferred to the Goal sheet, use =VLOOKUP to pull the desired data from Sheet1 and Sheet2.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulas in many Sheets referring to corresponding column in one sheet ue418 Excel 0 07-11-2012 02:04 AM
sheet 2 data highlight in sheet 1 gsrikanth Excel 1 04-21-2012 06:25 PM
If two geographical data match in two sheets, copy unique id/code found in one sheet alliage Excel 1 09-01-2011 05:23 AM
Combine Data From 2 Sheets into a new sheet How to combine different cells data in one cell? Learner7 Excel 1 07-28-2010 12:07 PM
Combine Data From 2 Sheets into a new sheet How do I merge data from one sheet in a workbook out into multiple sheets nolesca Excel 4 06-07-2010 08:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft