Excel Lookup

Hi,
I have an Excel, which has Database with two columns, Name & Tel. No.
The user gets his details of telephone which only has no.'s

He wants to copy the no.'s & excel should look into the first part & put the names in front.

I have attached a Sample Excel.

If possible Iwould like this to be achieved by formula & not VB, but if not please feel free to add Macro.

Best,
A Sample.xlsx
LVL 11
AcklesAsked:
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.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

please get rid of the merged cells. They will not play well with formulas, inserting columns, selecting cells, and more. Use "Center across selection" in the Alignment tab of the formatting dialog instead.

As to your question, you can use this in E3 and copy down:

=INDEX(A:A,MATCH(D3,B:B,0))

see attached.

cheers, teylyn
Sample--7-.xlsx

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
Saqib Husain, SyedEngineerCommented:
Enter this formula in E2

=INDEX(A:A,MATCH(D3,B:B,0))
AcklesAuthor Commented:
Thanks Teylyn.

Saqib, although it's the same as he posted, but bang on point.

I am assigning you both points.

Saqib, hope you doing well, it's been a long time...

A
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Thank for the points. For the record: the solution should be awarded to the first post with the correct answer, not the second. The formulas posted are exactly the same. Therefore, the solution should go to the first comment. Before you close your next question, please make sure to read the guidelines: http://www.experts-exchange.com/help.jsp?hi=100

cheers, teylyn
AcklesAuthor Commented:
I Appologize, wish could turn it around.
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
You can. Click "Request Attention" at the bottom of your original question box.
AcklesAuthor Commented:
Done
A
Saqib Husain, SyedEngineerCommented:
I did err on the cell to be used for the formula. Thanks for the points.

Saqib
Saqib Husain, SyedEngineerCommented:
Oh so many posts meanwhile.

I agree with Teylyn. No objections.

Saqib
AcklesAuthor Commented:
I do want points to be assigned to T.
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
VB Script

From novice to tech pro — start learning today.