Hello everyone. I'm very new to the forums and I came here in desperation for help with macros. I am doing a Masters in Finance and need to start stepping up my excel knowledge, especially when it comes to macros, since we do a lot of repetitions and simulations.
I'm doing a Monte Carlo simulation, in which I need a macro to do the following:
*Generate a random number from a normal distribution in a selected column cells
*copy the result of the simulation (the final value of the option) and paste (only values) the result onto another sheet.
And I want to repeat the simulation and keep pasting the results along the results column downwards for 10,000 times.
Now, here's what I managed to do so far:
As you can see, it's just a simple recording of the steps; That's my extent of macro knowlage. The "calculate" actuion appeared when I pressed F9 with the cells selected. The cells contain the formula NORMINV(RAND();0;1)
The cell H1004 is the cell with the final result (price of the option). I'd like to have a string of results along the B collum in "Ito Lemma Simulation Results".
I simply don't know how to make this loop nor how to keep pasting the results one cell downwards in the column.
This is for a final Options assignment and the teacher wasn't kind enough to show us how to deal with macros, so I really need to talk to someone who knows what they're doing. Thank you very much for all the help you can provide!
If more information is needed, please tell me.
Bookmarks