Calligra Sheets · What-if analysis · Intermediate
Solve a Target with Goal Seek in Calligra Sheets
Find the hours needed to reach a production target, check the residual independently and recover safely from a Goal Seek change.
Documentation and pinned source reviewed; native verification pending · Editorial standards
Find the working hours needed to reach a production target when a simple formula relates hours to output. Goal Seek changes one input cell; it is not a multi-variable optimizer and does not impose business constraints for you.
Scope and safe starting point
This walkthrough is based on official Calligra source at commit 72123cc643f6625351139e7df294544255a1056f and the KDE handbook, whose hosted revision is 2.7, dated March 11, 2013. The stable_kf6 URL does not make that handbook a current-build test. English Linux/KDE-oriented controls are source-reviewed, not observed in a new native run. No screenshot, installed-version result or save/reopen success is claimed. Other releases, translations and packaged builds need their own checks.
Use a new disposable workbook. Enter the cells individually, finish each edit and save a baseline .ods before running the tool. Do not use a real production schedule for this exercise. If the controls differ or are absent, stop and retain the baseline rather than borrowing another application’s steps.
Build a one-input model
| Cell | Entry | Meaning |
|---|---|---|
| A1 | Setup units |
Label |
| B1 | 15 |
Units already prepared |
| A2 | Units per hour |
Label |
| B2 | 12 |
Constant production rate |
| A3 | Hours |
Label |
| B3 | 2 |
Numeric starting guess, not a formula |
| A4 | Output |
Label |
| B4 | =B1+B2*B3 |
Output formula |
| A5 | Target |
Label |
| B5 | 75 |
Target for independent checks |
| A6 | Residual |
Label |
| B6 | =B4-B5 |
Actual output minus target |
| A7 | Direct hours check |
Label |
| B7 | =(B5-B1)/B2 |
Independent algebraic answer |
Before running Goal Seek, expect B4 = 39, B6 = -36 and B7 = 5. The direct calculation is (75-15)/12 = 5 hours. Save goal-seek-base.ods, then Save As goal-seek-working.ods so the baseline stays unchanged.
Set the target explicitly
- Stay on the sheet containing this model and choose Data → Goal Seek….
- In Set cell: enter
B4, the formula whose result should meet the target. - In To value: enter the numeric value
75, notB5or a formula. The reviewed action parses this field as a locale-specific number. B5 is a separate audit cell, not a live link to the dialog. - In By changing cell: enter
B3. It must contain a numeric starting value. Do not choose B7 or a range. - Click Goal Seek once. In the reviewed dialog this is an Apply action; it performs the calculation while the dialog remains open.
- Read the notice, then choose Close. Inspect B3, B4 and B6 directly. The independent target is 5 hours, 75 output units, and a residual sufficiently close to 0.
For this small linear example, require ABS(B6) to be less than 0.000001 and B3 to agree with B7 within 0.000001. You can enter =ABS(B6) in B8 and =ABS(B3-B7) in B9 to inspect those differences. These are acceptance checks for the example, not a guarantee of solver accuracy on arbitrary models. Display enough decimal places to see small discrepancies; a rounded display of 75 alone is not proof.
Close is not rollback. The historical handbook describes OK/Cancel acceptance. The pinned newer dialog instead uses Goal Seek and Close, and the action writes its successful result through an undoable command immediately. Do not assume closing the dialog restores the starting guess. For a deterministic reset, type 2 into B3 and check that output returns to 39, or reopen a copy of goal-seek-base.ods. Do not rely on Undo after reopening.
Change the question and test again
Restore B3 to 2. Change B5 to 99: the direct check B7 should become 7 and the initial residual should be -60. Reopen Goal Seek and explicitly change To value to 99; merely changing B5 does not update a previously entered dialog target. Keep Set cell B4 and By changing cell B3. After running, expect approximately 7 hours, 99 units, and a residual near zero.
If you leave To value at 75 by mistake, B3 can return to 5 and B4 to 75 while B6 remains -24. That is a useful failure check: a solution to the old target is not a solution to the new question.
Save the successful 99-unit case as goal-seek-final.ods. Close and reopen it locally, then check B3, the B4 formula, B5 and the residual again. Persistence is a required reader check, not a result observed for this guide.
Recognize an invalid or unsuitable problem
- Changing cell is blank or text: the reviewed action rejects a nonnumeric starting value. Restore numeric
2before retrying. - Set cell is a typed number rather than a formula: the reviewed action rejects it. Restore
=B1+B2*B3in B4. - A range is supplied instead of one cell: the reviewed action requires singular references for the target and changing cells.
- Zero production rate: on a separate copy, set B2 to 0. Output is fixed at 15 and cannot reach 75 by changing hours. The independent direct formula also divides by zero. This is an impossible model, not a reason to trust a success notice or invent hours. Restore the baseline rather than keeping this case.
- Negative or fractional hours: Goal Seek is not a constraint solver. For example, target 9 mathematically requires
-0.5hours with this model, which is outside a nonnegative scheduling domain. Reject it even if the residual is small. For indivisible batches or whole-hour staffing, perform a separate domain check instead of silently rounding a solution.
The pinned implementation uses a bounded iterative secant calculation. It does not provide a universal convergence certificate or enforce your feasible range. Discontinuous, flat or multiple-root models need separate analysis; a notice alone is insufficient. This guide deliberately uses a simple linear model with a known answer.
For basic cell formulas see the first expense sheet. If ordinary input changes do not recalculate, resolve calculation settings before attempting Goal Seek.
Primary sources and verification boundary
- KDE Goal Seeking handbook: the one-changing-cell concept; its acceptance-button procedure is historical.
- Pinned Goal Seek action: numeric/formula/reference checks, iterative calculation and result writeback.
- Pinned dialog and field labels: Goal Seek/Close behavior and the three inputs.
Arithmetic and negative-case reasoning were independently checked outside Calligra. Source inspection is not native execution; GUI behavior, actual convergence and ODS persistence remain unverified here.