Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 111
Default #N/A

I am pulling some stat information off the web, into Excel spreadsheet. My
problem is there will be at times that a player will not play, and when this
happens my formula keeps coming up with a #N/A error.

My code is as follows:

=IF([Game Stats-1.xls]Game-1'!$I$6="MY TEAM
ROSTER",IF(ISERROR(VLOOKUP($A$2,[Game
Stats-1.xls]Game-1'!$J$8:$J$25,1,FALSE)),"",(VLOOKUP($A$2,[Game
Stats-1.xls]Game-1'!$J$8:$J$25,1,FALSE))/$A$2))


The {[Game Stats-1.xls]Game-1'!$I$6="MY TEAM ROSTER"} is for me to look for
the team name that Im tracking.

The {ISERROR(VLOOKUP($A$2,[Game Stats-1.xls]Game-1'!$J$8:$J$25,1,FALSE))}
is for me to see if a particular player has played in this game. Im looking
for a player number in roster column for that game, if player did not play,
then put down a zero under that game, then see next line.

The {(VLOOKUP($A$2,[Game Stats-1.xls]Game-1'!$J$8:$J$25,1,FALSE))/$A$2))}
this part of the function will fill in the number for that particular
category if player has played this game.

$A$2 is the player number location on my spreadsheet. $J$8:$J$25 is the
range of player numbers that have played in the game.

Example: Say player number 23 played in the game, what I want my formula to
do is take player number (from my spreadsheet) and divide by player number
(from web information) to come up with one. Likewise if player number 23 did
not play then a zero would be inputted.

Any help in figuring out why I am getting a #N/A formula error every time a
player HAS NOT played would be greatly appreciated.

Steve


 
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



All times are GMT +1. The time now is 05:02 PM.

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"