Table Array in VLOOKUP Relies on Data Validation

W

willydlish

I apologize if this has already been addressed somewhere else, but I
could not find it....

I have a timesheet that I'm creating that relies heavily on data
validation driving drop-down lists. I've created ranges for all the
possible results of the drop-down choices, however, when I want to
query additional information in a named range through VLOOKUP, I cannot
use the result of the drop-down choice as the valid range. Despite the
cell displaying the range name it cannot pass this to VLOOKUP without
giving me an error.

Does anyone know how I can take the displayed result in a drop down box
and use this to fuel the table array for a VLOOKUP...in a worksheet
function !?!

Willy D.
 
B

Biff

Hi!

You can use Indirect provided it's a static named range.
If it's a dynamic range it won't work.

Assume the dropdown is in C1:

=VLOOKUP(A1,INDIRECT(C1),2,0)

Biff
 
W

willydlish

It is a static name range...many thanks Biff.

Ya know I played with INDIRECT a zillion times but completely blanked
on this possibility.

Cheers. :rolleyes:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top