baseballprof
New Member
- Joined
- Dec 14, 2012
- Messages
- 10
I'm trying to use the INDIRECT function in combination with the INDEX MATCH functions to look up certain values associated with different baseball players' names (if my profile name didn't give that away!). I've developed the following formula...
=INDEX('Batter Universe'!D:D,MATCH('Player Universe'!A100,("A"&D2&":"&"A"&E2),0))
...where D2 returns 101 (the first row after A100) and E2 returns 1381 (the last row in my data). According to the Evaluate Formula function in Excel, this formula produces a #VALUE error when it reduces down to the following:
=INDEX('Batter Universe'!D:D,MATCH('Player Universe'!A100,"$A$101:$A$1381",0))
I know that the quotation marks surrounding $A$101:$A$1381 would prevent Excel from reading it as a number, so is that my issue? Regardless, any ideas to help fix it?
Note: If I eliminate the INDIRECT altogether and just enter =INDEX('Batter Universe'!D:D,MATCH('Player Universe'!A100,$A$101:$A$1381,0)) from scratch, it returns the proper value...little bit stumped. Thanks!
=INDEX('Batter Universe'!D:D,MATCH('Player Universe'!A100,("A"&D2&":"&"A"&E2),0))
...where D2 returns 101 (the first row after A100) and E2 returns 1381 (the last row in my data). According to the Evaluate Formula function in Excel, this formula produces a #VALUE error when it reduces down to the following:
=INDEX('Batter Universe'!D:D,MATCH('Player Universe'!A100,"$A$101:$A$1381",0))
I know that the quotation marks surrounding $A$101:$A$1381 would prevent Excel from reading it as a number, so is that my issue? Regardless, any ideas to help fix it?
Note: If I eliminate the INDIRECT altogether and just enter =INDEX('Batter Universe'!D:D,MATCH('Player Universe'!A100,$A$101:$A$1381,0)) from scratch, it returns the proper value...little bit stumped. Thanks!