I am trying to predict a monthly weather dependent variable [X] using a montecarlo simulation.
I have compiled a daily temperature dataset going back 10 years from which I have defined the mean, mode, median, max and min as well as standard deviations and distribution percentiles for each month temperature ranges.
I am using this data to drive a regression model which takes historical X's (of which I have 144) and regresses (using the "Trend" function) against 31 days (or 30 or 28 depending on the month) of randomly created set of temperatures (created using randbetween function where the low and high are driven by subtracting / adding 2 x the standard deviation of the Max or Min temp within a given calendar month). The resulting number is called Output. To iterate this number I need to press F9 and then copy / paste the output.
What I want to do is for each calendar month (1 - 12) [Month is a defined variable], iterate 1,000 times and copy / paste the results to a separate worksheet [called Outputs Range E$12 - P$1000] rather than recording a copy paste macro to refresh then copy and paste 1,000 times per month so 12,000 time in total.
Can anyone help?
Thanks in advance
I have compiled a daily temperature dataset going back 10 years from which I have defined the mean, mode, median, max and min as well as standard deviations and distribution percentiles for each month temperature ranges.
I am using this data to drive a regression model which takes historical X's (of which I have 144) and regresses (using the "Trend" function) against 31 days (or 30 or 28 depending on the month) of randomly created set of temperatures (created using randbetween function where the low and high are driven by subtracting / adding 2 x the standard deviation of the Max or Min temp within a given calendar month). The resulting number is called Output. To iterate this number I need to press F9 and then copy / paste the output.
What I want to do is for each calendar month (1 - 12) [Month is a defined variable], iterate 1,000 times and copy / paste the results to a separate worksheet [called Outputs Range E$12 - P$1000] rather than recording a copy paste macro to refresh then copy and paste 1,000 times per month so 12,000 time in total.
Can anyone help?
Thanks in advance