View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ParTeeGolfer ParTeeGolfer is offline
external usenet poster
 
Posts: 22
Default Variable For Worksheet Name

Iam using the following Formula:

=VLOOKUP($W$5,'[2004 Rush Offensive Stats.xls]Game 37'!$B$2:$AO$100,37,FALSE)

Where "Game 47 " is the name of a workbook in a specific workbook, I would
like to have the number "47" as a variable.

If I try:
=VLOOKUP($W$5,'[2004 Rush Offensive Stats.xls]Game
(RIGHT(B47,2))'!$B$2:$AO$100,37,FALSE)

OR

=VLOOKUP($W$5,'[2004 Rush Offensive Stats.xls]Game
&AP47'!$B$2:$AO$100,37,FALSE)

I get a "Foirmula contains an invalid reference", How can I get "Game *" to
be a variable without an error?

Thanks in advance!