Home →
Techniques and Tips →
@RISK Simulation: Numerical Results →
**Placing Simulation Statistics in a Worksheet**

**Applies to:**

@RISK For Excel 4.x–7.x

RISKOptimizer 1.0, 5.x

Is there a way to have result statistics from an @RISK simulation placed in a specific location of a spreadsheet automatically at the end of a simulation?

Statistics for any cell—including inputs (@RISK distributions), @RISK outputs, and plain Excel formulas—can be reported directly in the spreadsheet at the end of simulation by using the statistic functions provided with @RISK. A full list of the statistic functions is available in the @RISK menu: Insert Function » Statistic Functions » Simulation Result.

As an example, the formula `=RiskMean(A1)`

will return the simulated mean of cell A1 across all iterations in the simulation. For an @RISK output or an Excel formula, that's the only option. For an @RISK input distribution, you have a choice: `=RiskMean(A1)`

to return the mean of random values drawn for that particular simulation, or `=RiskTheoMean(A1)`

to return the theoretical mean of the distribution. RiskMean values will vary slightly from one simulation to the next, and are not available till you have run a simulation; RiskTheoMean is based on the theoretical distribution and will always return the same result, even if you have not run a simulation. See Statistics for an Input Distribution.

In @RISK 5.5 and later, by default the statistic functions are not calculated until after the last iteration of a simulation, though you can change this in Simulation Settings. In @RISK 5.0 and earlier, the statistic functions all calculate in "real time", meaning that @RISK recalculates the statistic at each iteration based on the number of samples that have been drawn. For more about the timing of calculating the statistic functions, please see "No values to graph" Message / All Errors in Simulation Data.

**See also:**

- Simulation Statistics for Output Ranges
- Conditional Tail Expectation or Conditional VaR
- Semivariance, Semideviation, Mean Absolute Deviation
- Sum of All Iteration Values
- Regression Coefficients in Your Worksheet
- Placing Change in Output Statistics in Worksheet
- Placing Contribution to Variance in Worksheet

**Additional keywords:** Mean, simulated mean, percentile, simulated percentile, statistics functions

Last edited: 2017-06-30

This page was: Helpful |
Not Helpful