Fantasy Sports Forums - Dobber Sports  

Go Back   Fantasy Sports Forums - Dobber Sports > Other Stuff > The Lounge
Login at DobberHockey

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2012, 11:13 AM
doulos's Avatar
doulos doulos is online now
Join Date: Feb 2007
Posts: 10,199
 
Rep Power: 38
doulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond repute
Dobber Sports Grand Master
Default Google Spreadsheets

I am certain that there are some statistically minded hockey fans out there that know how to do this so figured I would ask here first.

I am using Google Spreadsheets to track Stats from various leagues and I currently have a spreadsheet with a list of names of players and stats.

On a second sheet I want to create 'teams' of players that would pull their stats from the first Sheet.

For example on Sheet 2 I might have ...

Nugent-Hopkins, Ryan
Eberle, Jordan
Atkinson, Cam

On Sheet one I have all of their stats and I want to pull them into the second sheet based on the name.

How would I do this? I am sure it's easy enough but I hardly ever use spreadsheets in my current job.
Reply With Quote
  #2  
Old 12-19-2012, 11:27 AM
fantasyhockeygeek's Avatar
fantasyhockeygeek fantasyhockeygeek is online now
Join Date: May 2008
Posts: 2,521
 
Location: Vancouver
Rep Power: 27
fantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond repute
Dobber Sports Genius
Default

vlookup is your hookup!

=vlookup(cell containing the name of the player your want to look up the stats for, range of cells you want to search in with the player name being the first column, number of the column you want to be outputted, FALSE)

For example, you have the players on your "stat" sheet, called "stats".
  • Their names are in column A from rows 2 through 100.
  • GP is column B, P is column C, PIM is column D

On your "lookup sheet", you'd put the player name in column A. Say you're on row 2. For column B (where you want to output GP for the player in question) you'd input "=vlookup(A2, 'Stats'!$A$2:$D$100, 2, false)".

For column C, where you want P, it would be "=vlookup(A2, 'Stats'!$A$2:$D$100, 3, false)"
Hope that makes sense? Probably doesn't.
__________________

Reply With Quote
  #3  
Old 12-19-2012, 11:28 AM
doulos's Avatar
doulos doulos is online now
Join Date: Feb 2007
Posts: 10,199
 
Rep Power: 38
doulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond repute
Dobber Sports Grand Master
Default

How did I know you would be the one to answer?!

I am going to go try this right now and see if I can get it to work. Will report back. Thanks!
Reply With Quote
  #4  
Old 12-19-2012, 11:33 AM
ericdaoust's Avatar
ericdaoust ericdaoust is online now
Join Date: Jun 2008
Posts: 12,947
 
Location: Sudbury, Ontario
Rep Power: 74
ericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond repute
Dobber Sports Legend
Send a message via MSN to ericdaoust
Default

It may take some practice getting used to. I've been using vlookup for years and still stumble with it at times.
__________________
UHL Calgary Flames
24-team H2H (roto G, A, GWG, SHP, PPP, PIM, +/, SOG, Hits, Blks, FOW, W, SV, SV%, GAA, SO)

Capped article archive

Montreal Canadiens coverage

Twitter:@DH_EricDaoust.
Reply With Quote
  #5  
Old 12-19-2012, 11:41 AM
doulos's Avatar
doulos doulos is online now
Join Date: Feb 2007
Posts: 10,199
 
Rep Power: 38
doulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond repute
Dobber Sports Grand Master
Default

I may have hit a snag in that since I am using importxml to grab the data it doesn't have the correct values in my 'stats' page.
Reply With Quote
  #6  
Old 12-19-2012, 11:43 AM
DerekReese's Avatar
DerekReese DerekReese is online now
Join Date: May 2010
Posts: 3,716
 
Location: The Future
Rep Power: 90
DerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond reputeDerekReese has a reputation beyond repute
Dobber Sports Sage
Default

Quote:
Originally Posted by doulos View Post
I may have hit a snag in that since I am using importxml to grab the data it doesn't have the correct values in my 'stats' page.
You want to make sure all your "data" is in number form and not text form. I also find that if the names dont match exactly it wont work either.
__________________
Derek Reese - Future Hall of Famer
Studs N Duds - Sunday's

12 Team NHL Salary Cap Dynasty
H2H, Salary Cap 82mil, Player actual salaries
G,A,PTS,GWG,PIM,SOG,STP,HT,BL,+/-,W,GAA,SV,SO
Starters: 12 Forwards, 6 Defense, 2 Goalies

F - Stamkos, Perry, E.Staal, Voracek, J.Staal, Simmonds, Ott, Downie, J.Jokinen, Eller, Nielson, Prust
D - Martin, Faulk, Brodie, Ellerby, M.Weber, Stone
G - Bobrovsky, Halak
Bench - Brunner, Brodie, Strachan, Khudobin, Lindback, Neuvirth, Ramo

Prospects - Calvert, Forsberg, Etem, Namestinikov, Kreider, Cundari
Reply With Quote
  #7  
Old 12-19-2012, 11:44 AM
fantasyhockeygeek's Avatar
fantasyhockeygeek fantasyhockeygeek is online now
Join Date: May 2008
Posts: 2,521
 
Location: Vancouver
Rep Power: 27
fantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond reputefantasyhockeygeek has a reputation beyond repute
Dobber Sports Genius
Default

Sure, but that shouldn't impact your ability to figure out how to look them up. Just start with dummy stats to begin with, get the lookup right, then get the stats in there.
__________________

Reply With Quote
  #8  
Old 12-19-2012, 12:00 PM
doulos's Avatar
doulos doulos is online now
Join Date: Feb 2007
Posts: 10,199
 
Rep Power: 38
doulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond repute
Dobber Sports Grand Master
Default

The syntax for the vlookup seems pretty straightforward but I think it won't work the way I have grabbed my data. I am using importxml to snag it from the AHL website for testing purposes, and so the value of the cells in the Stats sheet are not names, but are something else.
Reply With Quote
  #9  
Old 12-19-2012, 12:09 PM
ericdaoust's Avatar
ericdaoust ericdaoust is online now
Join Date: Jun 2008
Posts: 12,947
 
Location: Sudbury, Ontario
Rep Power: 74
ericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond reputeericdaoust has a reputation beyond repute
Dobber Sports Legend
Send a message via MSN to ericdaoust
Default

Quote:
Originally Posted by doulos View Post
The syntax for the vlookup seems pretty straightforward but I think it won't work the way I have grabbed my data. I am using importxml to snag it from the AHL website for testing purposes, and so the value of the cells in the Stats sheet are not names, but are something else.
But isn't the player name included somewhere in the data that you've fetched?
__________________
UHL Calgary Flames
24-team H2H (roto G, A, GWG, SHP, PPP, PIM, +/, SOG, Hits, Blks, FOW, W, SV, SV%, GAA, SO)

Capped article archive

Montreal Canadiens coverage

Twitter:@DH_EricDaoust.
Reply With Quote
  #10  
Old 12-19-2012, 12:13 PM
doulos's Avatar
doulos doulos is online now
Join Date: Feb 2007
Posts: 10,199
 
Rep Power: 38
doulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond reputedoulos has a reputation beyond repute
Dobber Sports Grand Master
Default

Quote:
Originally Posted by ericdaoust View Post
But isn't the player name included somewhere in the data that you've fetched?
Well it 'displays' as Jordan Eberle, but when I click on the cell itself the value is =CONTINUE(A2, 3, 3) which I assume is because I am using =ImportXML to grab the data.

I never use spreadsheets so it's probably something silly...hahah.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.