Contact

SIMTABLE Function (Gnumeric)

Statistical Intermediate Gnumeric

Define scenario values in Gnumeric with SIMTABLE, inactive first-value behavior, simulation rounds and aligned decision lists.

Verification status: Bounded Gnumeric 1.12.57 native cases and source review; no GUI; SIMTABLE active rounds not executed. How formula examples are checked

Exact syntax

=SIMTABLE(d1[,d2,...])

SIMTABLE selects a value from an argument list according to the current round of Gnumeric’s Risk Simulation tool. Outside an active simulation it returns the first value. It is not a random selector, a normal sensitivity data table, or a function that advances through its arguments on each ordinary recalculation.

Supply one or more scenario values: d1 is the first-round value, d2 the second, and so on. The native inactive-mode formula =SIMTABLE(223,225,227,229) returns 223. The other bounded examples show that a single value works, zero is a valid first value, and a text list can return its first string. These tests verify the inactive path only.

Simulation-round meaning

The inspected official help describes one list entry per simulation round. During a round, the simulation tool performs repeated trials of the model and summarizes output variables. A round’s scenario choice and the random trials within that round are different levels: SIMTABLE specifies the decision variable, while RAND or another random-distribution function supplies stochastic input.

The help says the simulation tool needs at least one input variable containing a random function. Keep the number of entries aligned across decision-variable SIMTABLE formulas. A variable with fewer entries than the requested rounds returns #N/A once its list is exhausted. This active-round behavior is source-documented, not freshly executed in the native scalar tests here.

Advanced application: aligned decisions

For an illustrative pricing model, put =SIMTABLE(10,12,14) in A1 for three prices and =SIMTABLE(100,90,80) in A2 for corresponding quantities. =A1*A2 gives 1000 outside simulation. The three aligned deterministic scenario products would be 1000, 1080, 1120 by independent multiplication. These are paired scenarios, not all nine combinations of the two lists.

A stochastic extension could use a separate random demand input and make an output depend on that input and the selected price. Keep the deterministic control calculation visible before introducing randomness. This guide does not supply a GUI execution transcript for the Risk Simulation tool or claim generated simulation statistics from the example.

Troubleshooting and scope

Repeated ordinary recalculation still returning the first value is expected; it does not prove that the function is stuck. Check whether the simulation tool is actually controlling rounds before expecting a later list entry. Avoid mismatched list lengths and validate each scenario’s inputs. The implementation iterates argument values and ignores blank cells in referenced data, so use explicit nonblank scalar lists when stable scenario alignment matters; reference-flattening edge cases were not exercised here.

Official NEWS records SIMTABLE’s introduction with the Risk Simulation tool in Gnumeric 1.1.7. Its last functioning release or retirement is not established. Do not assume a function with a similar name in another spreadsheet implements Gnumeric’s simulation-round state.

Recorded formulas and results

  • =SIMTABLE(223,225,227,229) → 223
  • =SIMTABLE(10) → 10
  • =SIMTABLE("low","high") → low
  • =SIMTABLE(0,1) → 0

Verification and version scope

The implementation inspected and native executable tested are Gnumeric 1.12.57. The four bounded records above were freshly recalculated on 17 October 2026, then checked by reading both saved input formulas and output cells. Financial prices agree with independent discounted cash flows to absolute tolerance 1e-11; the inactive SIMTABLE selections and error outputs match exactly. Source and native evidence hashes were verified. This is engine evidence, not a GUI screenshot. No active simulation rounds, long-coupon edge cases, extreme inputs or later-version execution are claimed.

Official sources