Merging two different column into 1 final column

Jackcell

New Member
Joined
Dec 3, 2017
Messages
14
Hi all,
Been searching online for a solution but to no avail.

Problem:
I have 2 different excel files, excel A and excel B.
Excel A has age time money
Excel B has age time date

I need to combine these two columns of both file to be the same, age time date money.

Cheers,
Jack
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If age or time is unique, you can just do a straight forward vlookup, by naming the range in one sheet, and using vlookup to look for a value in one sheet and return the value in the column in the named range. the value you want to look up should be the first column in the named range. eg =vlookup(a2,namedrange,column you want to return,false)

Assuming, that neither age nor time are unique identifiers, but a combination of the 2 may be,

In one book, create a helper column at the start of the data, by using =concatenate(age,time) where age and time are the columns you want to concatenate.
Copy this down so all your data now has this unique identifier, and select all you data and name the range.

in the other workbook, in the cell you want your data to appear type =vlookup(concatenate(age,time),range name,1,false) where age and time are the columns on the current sheet, range name is the name you gave in the other sheet, and 1 is the column number of the named range where the value you want to return is.


Regards,

Dan.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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