Combining Sheets

berg891832

Well-known Member
Joined
May 2, 2002
Messages
509
Okay, here is my Situation. I have two sheets: Sheet1 and Sheet2. Both sheets have essentially identical information - SSN, Name, Address for the same 200 people but sheet1 has some different people. However, Sheet1 has some different column headings than Sheet2. I am trying to combine both sheets together. Is there a way to do this easily? Thanks in advance.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

BigC

Well-known Member
Joined
Aug 4, 2002
Messages
851
If you just want to combine the data from both sheets into one without repitition (i.e a single database) identify the sheet that you think is more complete (i.e has more names in it) - say Sheet 1.
In Sheet 2 use vlookup formulae
=vlookup(sht2namecell,sht1namesrange,1,false)
to identify which names are not in sheet 1 (will return a "N/A" error.=>> copy those names into Sheet 1
In Sheet 1 use a vlookup formulae to return the required values from the Sheet 2 for each person - firstly for the data in sheet 2 for those people where there was a match in the first instance, and then for the additional data for those where there was no match.

HTH
Colin
 

yosi

Board Regular
Joined
May 14, 2002
Messages
67
in sheet 2 enter formula and copy it all the way down in coloumn D
=COUNTIF(Sheet1!A:A,A1)
( assuming that column A contain the names )
then use Filter to find all the 0 results in column D
copy the lines to sheet1
This message was edited by yosi on 2002-09-18 23:56
 

Forum statistics

Threads
1,144,221
Messages
5,723,102
Members
422,477
Latest member
pete101

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top