- May 5, 2005
- 159
- 0
- 76
hey everyone,
was wondering if anyone can help me to randomize the debut year of players in this database? Someone was kind enough to post instructions how to do it, but I'm no good with excel, and I don't particularly understand what he means.
You can download the database I want to use for this here.
If anyone can do it for me, or help walk me through it, I'd greatly appreciate it.
Thanks,
Trapper
was wondering if anyone can help me to randomize the debut year of players in this database? Someone was kind enough to post instructions how to do it, but I'm no good with excel, and I don't particularly understand what he means.
1. Copy the Master CSV to Excel.
2. Create a column with new Random year using the function Randbetween(FY, LY) with first year about 5 years before your league starting and last year the year you want your last season to run without having fictional players.....
3. Create a column subtracting the random debut year from the actual debut year.
4. Paste the Random Year over the actual debut year using Paste Special - Value.
5. Create a column subtracting the number created in step 3 with the birth year. Paste using the Paste Special - Value over the birth year.
Batting/Pitching and Fielding CSV
1. Copy all these to a Excel workbook.
2. Create a Master CSV that has the Lahmn ID and the value created in step 3 above.
3. Create a column in the batting file that does a lookup on the lahman ID, returning the value created in the master csv step 3.
4. Create a column that subtracts this value from the year of the record. Paste this column into the year column using paste special value.
5. Do this for all files that has the year value in it.
6. Delete the extra columns you created in all imported csvs and export the new tables to csv files. Just make sure to save a copy of the original lahmans csv files in case you have made any errors or in case if you want to create another random debut database in the future.....
I used to have this in an access program using queries and it worked good. The above way is a little more work but you can create a Random Debut table in about 25-30 minutes. On Simcentral I have a random debut database in the OOTP5 section that I create a few years ago using my access application. It does not have any players from 2004-present but it does have the historical players. IF you started in 1901 you would have enough players for 24 teams with an average of 4-5 rounds each year after the initial draft.
The above steps require a intermediate understanding using MS EXCEL and the functions to create the tables, also it requires the Analysis Pack that comes with Excel 2002 and above for some of the functions...(randbetween being one - otherwise you will need to use the random function)
You can download the database I want to use for this here.
If anyone can do it for me, or help walk me through it, I'd greatly appreciate it.
Thanks,
Trapper
