Use tab name in Vlook Up

  • Thread starter Thread starter AMH
  • Start date Start date
A

AMH

I have a formula that looks up data in a sheet using Vlookup, every week the
formula changes as the week number changes.

The tab to look for data has a tab name of wk## and thus the forumla for
week 28 looks like this

=VLOOKUP(O2,wk28!A4:L3000,12,FALSE)

How can I substitue the wk28 tab number in the formual for a cell reference
that contains the text "wk28" ?

This will save me modifying forumlas on weekly basis.

Thanks
 
With something like
=VLOOKUP(O2,INDIRECT("wk"&O1&"!A4:L3000"),12,FALSE)
where O1 hold the week number
best wishes
 
Hi Don,


I've used INDIRECT before to produce text strings, however I couldnt workout
from the help text how to use it within the formula I listed, I tried this


=VLOOKUP(O2,INDIRECT("O1")*A4:L3000,12,FALSE)

where O1 contains the tab name I want to refer to, but this didnt work
 

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