Compare and Populate two Sheets

ctackett6407

Board Regular
Joined
Mar 18, 2018
Messages
66
Office Version
  1. 365
Platform
  1. Windows
Hi Folks,

I was given an excel sheet today that contained data that was missing a few fields.

Sheet1

Column1Column2
Column3Column4Column5Column6
Unique Key1Data4
AddressCityStateZip
Unique Key2Data5
Data8Data11Data14Data17
Unique Key2Data6
Data9Data12Data15Data18

<tbody>
</tbody>

Sheet2

Column1Column2
Column3Column4Column5Column6
Data4
IdentityOtherDataStateZip
Data5
Data6

<tbody>
</tbody>


Okay so what I've been doing is I just copy and pasted the lists next to each other in the same sheet and used <code>=IF(EXACT(A2, B2), "Match", "") and am now manually going to each one that doesn't match and cutting it to a new sheet and I'll manually fix those later. the problem is I now have 300 that do not match and 3000 lines left to go through.

What I am trying to do is compare Column2 in Sheet1 to Column2 in Sheet2 and if they match I'm wanting to end with the following information;

Example using the first row under the column headers.

</code>
Unique Key1DataIdentityOtherDataAddressCityStateZip

<tbody>
</tbody>
<code>
</code>
I'm trying to get it to compare Column2 from Sheet1 and Sheet2 and if they match then grab the Unique Key1 from Sheet1's matching row and grab Identity, Otherdata, Address, City, State Zip from Sheet1

Basically the Sheet1 was returned to me because it's missing the Identity and OtherData and I need to compare the Column2 against each other and find and return the missing data back to the company.

Any help would be great, I spent almost 5 hours doing this manually and using the Match formula and it just isn't working.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
key
dataAddressCityStateZip
Unique Key1Data4addr1city1state1zip1
Unique Key3Data5addr2city2state2zip2
Unique Key2Data6addr3city3state3zip3
Column1
Column2AddressCityStateZip
#####Unique Key2Data6addr3city3state3zip3
no matchData7#N/A#N/A#N/A#N/A
Unique Key3Data5addr2city2state2zip2
####
=IF(ISERROR(OFFSET($C$3,MATCH($C11,$C$4:$C$6,0),-1)),"no match",OFFSET($C$3,MATCH($C11,$C$4:$C$6,0),-1))

<colgroup><col><col><col span="7"><col><col><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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
Back
Top