|
Worksheet-based
and VBA-based approaches
There are two
basic approaches for developing Monte Carlo
simulations in Excel: the
worksheet-based approach, and the VBA
approach.
The worksheet
approach is generally easier to implement,
does not require use or knowledge of the
Visual Basic programming language, and
provides a very efficient solution to many
types of problems. In this approach,
you build a compact model of the problem on
an Excel worksheet - typically in a single
row - and then copy and paste the model (the
spreadsheet row) as many times as you wish
in order to generate the iterations of the
model. For example, if you want to run
the model 10,000 iterations to generate your
data set for analysis, you would copy &
paste the row containing your model 10,000
times.
There are at least three significant
limitations of the worksheet approach.
First, the current version of Excel has a
maximum of 65,536 rows per spreadsheet.
Thus your Monte Carlo programs would have a
practical limitation on number of iterations
that can be run. Of course it's
possible to use multiple separate
worksheets, or adjacent column groups on the
same worksheet, to increase the number of
iterations several fold. However, for
a highly complex problem requiring millions
of iterations in order to generate
confidence around the resulting data set, it
becomes impractical to use the worksheet
approach. |