Apr 28 2021 12:05 PM
Apr 28 2021 12:05 PM
I have one Master (Results) spreadsheet (attached), 15 spreadsheets (games) which I had hoped to feed inputs into the master spreadsheet (more on that later), and 1 other workbook (schedule) which feeds data into the 15 (games). For the purposes of *hopefully* resolving this issue, I have attached the Master, 2 of the games and the schedule.
As yet, there are no issues feeding data from the schedule file to any of the games files.
The issue appears to occur when I run a Macro in the Results file that I had hoped would pull in all the data from the various games files.
In a perfect world, what this process would look like is:
1.) the Macro, located in the results file, and is called Picks_Calculate would copy data from the Data worksheet in the schedule file to the Adjusted Stats worksheet in each of the game files.
This Macro was broken up into four macros for each of the various game sheets.
2.) The Macro would then copy the data from the results file (necessary for calculations in the games files) and then paste values that data to the various game files.
3.) The Macro would then:
-Refresh the Adjusted Stats worksheet
-Refresh the Calculations
-Refresh the Simulations worksheet in the each of the games files.
-Run an advanced filter on the Weights worksheet, and copy and paste that data to the Weights1 worksheet.
-Refresh the Weight-Summary Statistics worksheet
4.) Close the schedule workbook
5.) Copy and paste some data as Paste Values from the Master and Simulations worksheets into the Picks-Generator worksheet in the Results file.
6.) The Macro then ought to run the macros responsible for the Macros responsible for those various tasks.
There are a couple issues.
1.) I don't get uniform results. In some instances the Macro works well, but in filtering in other data to the Results workbook, there is data missing.
2.) When the Macro is run, in some of the Games workbooks, the formulae in the Master worksheet at J12, 13 are incorrectly applied, whereas in other Games workbooks, this is not an issue.
3.) In some of the games workbooks, the advanced filter does not run, and subsequently the data is not pasted to the Weights1 worksheet in the Games workbooks. I suspect it is likely this that is responsible for the issue, but how to fix it? Is there a way of accomplishing the same goal using solver?
4.) some of the data that is pasted from the games workbooks to the Results workbook is incorrectly pasted. Specifically, I had a formula in the J2 cell of the simulations worksheet in each of the games workbooks which was supposed to calculate the total of each row from B6:C10005 and average them out. Instead it is showing incorrect data which is then pasted into the corresponding cell in the picks generator worksheet in the results workbook.
I apologize for the longwindedness of this, but I have been trying to get this up and running for a week now, and I have no idea how to fix it.
If you were to run the Macro without changing the data from Schedule or Results workbooks, you would see the issue.
Any and all help would be greatly appreciated.