![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Posts: 107
|
I have a database of scores for all baseball games played from 1900 through 2000, with data in the following form:
A------- B-- C--- D----- E----- YrMoDayID HLg Home VScore HScore 19000419 NL BSN 19 17 19000419 NL CIN 13 10 19000421 NL BRO 2 5 19000421 NL CIN 3 4 19000422 NL CIN 6 7 [...] 20000930 NL HOU 6 7 20001001 NL ARI 11 4 20001001 NL ATL 10 5 20001001 NL FLO 5 7 20001001 NL HOU 1 6 The YrMoDayID is not unique, and is simply a concatencation of the Year, Month, and Day a game was played. Year goes from 1900 to 2000 and Month from 03 to 10. HLg is the League of the Home team, and can be AL, FL, or NL. Home is a three-letter team identifier (e.g., BSN=Boston). Not every team played in every year. VScore and HScore represent the Visiting team's score and the Home team' sscore, respectively. I need to determine earliest date for every year for each team, and subsequently determine the team's won-lost record based on its opening day games. Any suggestions as to how I can accomplish this?
__________________
Thanks, Cliff |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi
Would not be difficult using a macro. If no one offers any help, send me your workbook. TsTom@hotmail.com Tom |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Posts: 107
|
Tom, the workbook is very big. I assume that a subset of the data would be adequate?
__________________
Thanks, Cliff |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Baseball,
if this is public domain file, may I have a copy of the database ? *avid Red Sox fan here* thanks Chris novulari@hotmail.com |
|
|
|
|
|
#5 | |
|
Board Regular
Join Date: Apr 2002
Posts: 107
|
Quote:
Unfortunately this database is not in the public domain; however, there is a public source for looking up game scores from 1900 to 2000, and which includes box scores from 1978 on--Project Retrosheet at http://www.retrosheet.org under Boxscores, Narratives, Other Goodies. Also a Red Sox fan, Cliff
__________________
Thanks, Cliff |
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
fantastic.... cheers
I'll be over again before they tear down Fenway |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|