Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SIMTOOLS.XLA also adds three macro procedures to the Excel Tools menu:
SIMULATION TABLE tabulates output from repeated MonteCarlo simulations of a spre
adsheet model with random variables. To use SimulationTable, Excel's Calculatio
n property must be set to Automatic (see Tools>Options>Calculation). Before usi
ng the SimulationTable macro, a range must be selected in which the output to be
tabulated is in the top row, but not in the top-left cell. The output from repe
ated recalculations of the model then fills the lower rows of the selected range
below these output cells. The leftmost column of the selected range is filled
with fractile numbers, indicating (in each row of the simulation table) what fra
ction of the simulation data is above this row. SimulationTable is similar to a
column-input DataTable, but SimulationTable stores the output data as values th
at are not recalculated whenever the spreadsheet changes.
ITERATIVE PROCESS iteratively updates a State Range with values copied from an U
pdate Range, while tabulating output into an Output Table. The State Range and
the Update Range must have the same size. The Output Table must have outputs fr
om the model in the top row, but leaving the top-left cell unused; iteration num
bers will fill the left column. During iteration, Excel's Calculation option wi
ll be temporarily set to Manual, and then will be reset to Automatic when the si
mulation is done.
COMBINE ROWS combines copies of the rows in selected input ranges, to make an ou
tput range whose rows are all the possible combinations of the rows in the input
ranges. Using CombineRows (and the LOOKUP or VLOOKUP function), a column-input
data table can be made to show functional dependence on any number of variables
. CombineRows can also be useful in making tables to calculate conditional prob
abilities.
In addition to the functions that are added by Simtools, the following regular E
xcel functions should be noted for their importance in making simulation models
and for doing statistical analysis: RAND, NORMINV, BETAINV, GAMMAINV, CHIINV, LO
GINV, NORMSDIST, TDIST, TINV, FINV, FDIST, LOOKUP, VLOOKUP, INDEX, EXP, LN, SUM,
SUMPRODUCT, IF, AND, OR, SUMIF, COUNTIF, INT, MAX, MIN, AVERAGE, STDEV, STDEVP
, FREQUENCY, QUARTILE, PERCENTILE, VAR, COVAR, CORREL, DCOUNT, DSUM, DAVERAGE,
OFFSET, INDIRECT, TRANSPOSE, NPV.
Anyone who does advanced modeling in Excel should also become familiar with the
column-input DataTable procedure, the DataSort procedure, the Solver procedure,
and Chart making. From more basic courses, students should be familiar with the
Cut, Copy, Paste, and PasteSpecial>Values commands, and the use of absolute($)
references.
I also recommend using my FORMLIST.XLA add-in (also available from http://www.ke
llogg.nwu.edu/faculty/myerson/ftp/addins.htm) to display the hidden formulas tha
t are used in any analytical spreadsheet. Formlist adds one macro procedure to
the Excel Tools menu, and it adds one Lookup&Reference function called FORMULAS.