How to Match a column with another sheet's column and copy paste the Entire Row&Column after the end of the columns of primary sheet?

illuminate

New Member
Joined
May 29, 2015
Messages
2
I have been trying to achieve this for a while. Thank you in advance for your help.

This will be a script that will be based on 2 excel files: fileA and fileB (if you can't do this with different excel or sheets then consider having all date in one sheet but in different columns, obviously)
use Column A in fileA as a way to connect to Column X in fileB;
if column A and X data matches then copy all the data in the same row from column X to the infinite right.
Maybe I confuse you with this explanation, but here is an example; let's assume we have in fileA we have these columns:
A) Phone Number (as identifier)
B) Name
C) Surname
D) Address


and I have fileB with columns:
E) Phone Number (as an identifier)
F) country
G) zip
H) Car Brand


Now, I want to be able to match the entire row and column from excel fileA column A with fileB column E.
After we match them we need to copy everything from column F,G,H of fileB and move it to FileA and paste it in columns E,F,G.
So, we copy paste everything including titles and all the column from original file, but we make sure it is also matching in the same row as the phone number (identifier).

Can this be a single script or will it be many scripts? Can someone guide me in doing this?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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