How can I use a table structured reference with a vlookup() function?

I want to use a structural reference in a vlookup function. I have a table called Staff_data on a separate sheet which I want to use as the table array. I've tried typing it in as worksheet reference![staff_data], hasn't worked. Do I need to name the range like I do for creating a dynamic dropdown or what am I missing? Thank you.
LVL 1
agwalshAsked:
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.

NorieAnalyst Assistant Commented:
Try Staff_data[#All], for example.

=VLOOKUP(A1, Staff_data[#All],2,0)
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
ShumsExcel & VBA ExpertCommented:
Hi,

Instead of referencing the whole table, just refer to Table Column Headers:
=VLOOKUP(B2,Table1[[ColA]:[ColC]],3,0)

Open in new window

Change the column header accordingly.
0
agwalshAuthor Commented:
Found the exact reference I was looking for
0
Rob HensonFinance AnalystCommented:
Don't forget the VLOOKUP will still look at the leftmost column of the Array, whether it is a standard range or a table.
0
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
Microsoft Office

From novice to tech pro — start learning today.