Vlookup dynamically changes for different ranges

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a vlookup that needs to look at different tables.

Is there any way to automatically change the range it looks up, without if
lloops. So if you put a 1 in cell A1 it would look up the first range, 2 the
second range and so on. I tried using choose but this did not work.

Thanks
 
You need the INDIRECT() function. Look in HELP for details; if you can't
sort it out, post again!

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel
 
One way (for 1 to 3):

=VLOOKUP(A2,CHOOSE(A1,INDIRECT("sheet1!a1:b999"),
INDIRECT("sheet2!a1:b999"),
INDIRECT("sheet3!A1:b999")),2,FALSE)
(all one cell)
 

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

Back
Top