Question : Can a value from Vlookuop be used as a worksheet name to retrieve data

I have an Excel workbook that has multiple worksheets.  Relative to which code is selected a respective worksheet is read to retrieve the data.  Is there a way to do this ?

Example:  If code 99 is selected, I would like to use a formula such as =Totals!B6
                 If code 01 is selected, I would  like to use a formula such as =Winter!B6

Answer : Can a value from Vlookuop be used as a worksheet name to retrieve data

You can do something like this, assuming your codes are text:

=IF(VLOOKUP(A2,LookupTable,2,FALSE)="99",Totals!B6,IF(VLOOKUP(A2,LookupTable,2,FALSE)="01",Winter!B6,"???"))
Random Solutions  
 
programming4us programming4us