LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Max
 
Posts: n/a
Default

Clarification:
Something along these lines should work (both untested, apologies):
=VLOOKUP($W$5,INDIRECT("'[2004 Rush Offensive Stats.xls]Game
"&(RIGHT(B47,2))&"'!$B$2:$AO$100"),37,FALSE)


The above suggestion presumes that "RIGHT(B47,2)" will evaluate to a number
like: 47

(Think there was an additional parens around "RIGHT(B47,2)" which was not
necessary - missed out earlier. This can be removed.)

If however, as per line in the original post:
The cell content of B47 is in another workbook called "2004 Individual
Stats" [corrected for typo] ...


then we might need another INDIRECT inside RIGHT(...),

For example, if you have in A2: B47
then you could out in say, B2:
=VLOOKUP($W$5,INDIRECT("'[2004 Rush Offensive Stats.xls]Game
"&RIGHT(INDIRECT("'[2004 Individual
Stats.xls]Sheet1'!"&A2),2)&"'!$B$2:$AO$100"),37,FALSE)

where cell B47 in Sheet1 in book: 2004 Individual Stats.xls
contains say: 447, or T47

RIGHT(INDIRECT("'[2004 Individual Stats.xls]Sheet1'!"&A2),2)
will then evaluate to: 47

and the formula for the table array part:

INDIRECT("'[2004 Rush Offensive Stats.xls]Game "&RIGHT(INDIRECT("'[2004
Individual Stats.xls]Sheet1'!"&A2),2)&"'!$B$2:$AO$100")

will resolve to:

'[2004 Rush Offensive Stats.xls]Game 47'!$B$2:$AO$100

which is the table array in your original formula:
=VLOOKUP($W$5,'[2004 Rush Offensive Stats.xls]Game 47'!$B$2:$AO$100,37,FALSE)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass a workshhet name as a parameter into a subroutine ? yigalb Excel Discussion (Misc queries) 4 January 9th 05 10:28 AM
Sum Variable Ranges Erika Excel Worksheet Functions 6 December 23rd 04 03:52 PM
Add 2nd variable to if statement - ifAnd? Todd F. Excel Worksheet Functions 4 December 18th 04 07:49 PM
Cell reference - for the sheet name, can I use a variable? Matt Lawson Excel Discussion (Misc queries) 4 December 13th 04 02:31 PM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"