|
|||||||
| Capping All handicapping, betting systems, spreadsheets, mathematics & quantitative technicapping. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Excel Macro for NFL Data
Thought I posted this but obviously I haven't.
Web developers and programming veterans often consider visual basic and excel to be amateur. But I find it to be extremely powerful, and those that are inclined to deviate from what is used by the consensus for spite deprive themselves of one of the more considerably tractable programs available. Here is the excel macro VB code to get NFL data from Statfox Spoiler: What you need to do before running is create a table with the names of each team according to the parameters that correspond to the web address, i.e. San Diego = San+Diego, Giants = NY+Giants You can speed up the process by importing a team report or statistics table from the website and find all '" "' and replace with '+' (Find spaces and replace with +), go here and copy and paste or the more efficient way is to import through excel web service browser NFL Preseason - Team Report Then select all the teams in the table and define a name to the range, a brief survey of the code and one can see I named the range "NFLTeams" That's it, run the code. Takes a while but gets the job done. The workbook will contain however many years worth of sheets for each team, all named with the same format, team and year (Arizona2009, Washington2004, NY+Jets2007, etc...) All impertinent and superfluous data will be stripped, and if you scan the code you can probably figure out which command is used to strip the data. Each sheet will have the date, opponent, score, line, total, ats results, total results, offense/defense - rushing yds, rypa, passing yards, pypc A great way to learn VB is to record or macro and see the result, and use google
__________________
"Nobody goes there anymore, its too crowded." --Yogi Berra "Always tell the truth, that way you won't have to remember what you said." --Mark Twain *=$50,000 Last edited by uva3021; 08-08-2010 at 11:01 PM. |
|
#2
|
|||
|
|||
|
WoW I just got major wood!!! Where Brit????? Great macro UVA!! Thanks !!!
|
|
#3
|
|||
|
|||
|
UVA always giving guys wood
|
|
#4
|
|||
|
|||
|
I like to consider myself geeky, but UVA you take the cake. Take that as a compliment please.
__________________
Absent is my middle name |
|
#5
|
|||
|
|||
|
I have been looking for a long time for this kind of spreadsheet. Has anyone created such sheet that cares to share
Thanks |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT -5. The time now is 05:46 PM.








Linear Mode
