Excel Lookup matching field to Auto Fill/Populate Data

I have an xls file called "Masterlist" that has hundreds of contacts, i.e. Member ID, first name, last name, phone, and email in respective columns/rows.

I have another xls template that only contains Member ID in a column.  I need a formula/method to auto fill/populate the remaining info, i.e. first name, last name, phone, and email per row that matches Member ID on the template file from the Masterlist xls file.  

I'm assuming it's a vlookup or lookup formula, but need a bit more direction and most efficient method.
LVL 1
jetli87Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Power Query is the best tool to achieve this if you are using Excel 2010 or later. Or you can also use VBA to achieve this.
0
Rob HensonFinance AnalystCommented:
Yes, VLOOKUP would be a way to do it.

Assuming Member Data file on Sheet1:
Column     Value
A                 member id
B                 first name
C                 last name
D                 phone
E                 email

Template file
Column      Formula/Value
A                 member id
B                 =VLOOKUP($A2,Sheet1!$A:$E,2,FALSE)
C                 =VLOOKUP($A2,Sheet1!$A:$E,3,FALSE)
D                 =VLOOKUP($A2,Sheet1!$A:$E,4,FALSE)
E                 =VLOOKUP($A2,Sheet1!$A:$E,5,FALSE)

The syntax for VLOOKUP is:
=VLOOKUP(Lookup Value, Lookup Range, Column Offset, Lookup type)

Lookup Value - your member id
Lookup range - the full data set master list with member id in the left most column of range
Column Offset - the column from the lookup range from which to return the value. You will notice that the only difference between the formulas is this parameter. It increases to return from the relevant column in the source. This can be set to be dynamic if so required by matching on a column header.
Lookup type - This decides whether to find a close match or an exact match; FALSE looks for an exact match.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Spreadsheets

From novice to tech pro — start learning today.