[]
        
(Showing Draft Content)

What-If Analysis

SpreadJS Designer supports for What‑If Analysis, including Goal Seek and Data Table.

These features are available from the Data tab in the ribbon.

image

Goal Seek

Goal Seek determines the input value required to achieve a specified formula result.

Open the Goal Seek Dialog

  1. Go to Data → What‑If Analysis → Goal Seek.

  2. The Goal Seek dialog appears.

image

Configure Goal Seek

In the dialog, specify:

  • Set cell: The formula cell whose result you want to control.

  • To value: The desired result.

  • By changing cell: The input cell that will be adjusted.

  • Maximum iterations: The maximum number of calculation attempts.

  • Tolerance: The acceptable difference between the calculated result and the target value.

Click OK to start the process.

Goal Seek Execution

When Goal Seek starts:

  • The system iteratively updates the changing cell.

  • A Goal Seek Status pane displays the progress.

  • You can review intermediate results during calculation.

When the result falls within the specified tolerance:

  • A result dialog is displayed.

You can then choose:

  • OK – Apply the final value to the worksheet. The operation supports undo.

  • Cancel – Revert all changes made during the process.

goalSeek.gif

Data Table

A Data Table evaluates a formula using multiple input values and returns the corresponding results.

Open the Data Table Dialog

  1. Select the target range in the worksheet.

  2. Go to Data → What‑If Analysis → Data Table.

  3. The Data Table dialog appears.

image

Configure the Data Table

In the dialog, specify:

  • Row input cell

  • Column input cell

At least one input cell must be provided.

Click OK to confirm.

After confirmation:

  • An SJS.TABLE formula is inserted into the selected range.

  • The results are calculated automatically.

goalSeek.gif

Data Table Execution

During calculation, the Status Bar displays the progress of the Data Table evaluation.

You can monitor the percentage completed until the calculation finishes.

image

Partial Calculation Mode

For performance optimization, Designer supports Partial Calculation mode for Data Table.

When enabled:

  • SJS.TABLE formulas are not recalculated automatically when dependent values change.

  • Users must manually trigger recalculation by clicking the Calculate button.

This mode is recommended when working with large data tables.

partialCalc

See Also