OpenOffice Calc · What-if analysis · Intermediate
Reach a Target with Goal Seek in OpenOffice Calc
Solve a one-variable profit model with Goal Seek, check the target independently, and reject impossible or impractical results.
Find the sales quantity that makes a simple contribution model reach its target. Goal Seek changes one input to make one formula approach a desired result; you still need to decide whether the proposed input is meaningful.
Set up an original break-even model
In a blank Apache OpenOffice Calc 4.1 sheet enter the following cells. Enter formulas with the leading equals sign and keep numbers as numeric values. No currency format or locale-specific decimal input is required.
| Cell | Label or entry |
|---|---|
| A1 | Quantity |
| B1 | 100 |
| A2 | Price per unit |
| B2 | 45 |
| A3 | Variable cost per unit |
| B3 | 18 |
| A4 | Fixed cost |
| B4 | 5400 |
| A5 | Profit |
| B5 | =B1*(B2-B3)-B4 |
The starting profit is -2700. Each extra unit adds 27, because 45-18=27. Break-even therefore requires 5400/27=200 units. This independent calculation lets you check Goal Seek instead of accepting an unexplained answer. Save a clean ODS copy before changing B1.
Solve and inspect before accepting
- Select B5, the formula cell. Choose Tools > Goal Seek.
- Confirm Formula cell is
$B$5on the current sheet. - Set Target value to
0and Variable cell to$B$1. B1 must be the numeric input; B5 must remain the formula. - Click OK. Review the result dialog. A successful result should propose a quantity close to 200.
- Accept with Yes only after checking the proposed value. If it is unexpected, decline the proposed change and inspect the references before rerunning.
- Check B1 and B5 in the input line. B5 should be zero or a tiny numerical residual near zero, not merely formatted to hide a material difference. For a numeric tolerance check, enter
=ABS(B5)<0.000001in D1; TRUE means the absolute residual is below one millionth in this model.
The official 4.1 Data Analysis chapter documents the Formula cell, Variable cell, Target value and final Yes acceptance. On macOS, use the menu labels available in the desktop build; the guide’s general Mac substitutions concern shortcuts and preferences, not a different web workflow.
Profit target and capacity check
Reset B1 to 100, leave the other starting inputs intact, and repeat Goal Seek with target 1350. The expected quantity is (5400+1350)/27=250. After acceptance, B5 should be 1350 within the chosen tolerance. For this test, change D1 to =ABS(B5-1350)<0.000001.
Suppose production can supply only 220 units. Goal Seek can still propose 250 because this workflow has no capacity constraint. Manually enter 220 to establish the feasible profit, 540. A mathematically successful result does not override a business limit. Record the capacity separately; use a constraint-capable model if several inputs or explicit bounds must be solved together.
For a changing-assumptions test, set B4 to 5940 and seek target 0 again. Expect 220 units. Restore B4 to 5400 before continuing. Increasing fixed cost changes the answer even though the formula and changing-cell selection are unchanged.
Fractional and impossible targets
With the original cost assumptions, seek target 1000. The mathematical solution is 6400/27, approximately 237.037037 units. Goal Seek is not an integer-order optimizer. If only whole units can be sold, 237 yields profit 999 and 238 yields 1026. Choose the whole-unit decision from the business requirement, then enter that quantity explicitly and check the resulting profit. Displaying zero decimals does not turn a fractional input into an integer.
To demonstrate an impossible target, first save your successful case separately. Set B2 to 18, equal to B3, and B1 to 100. B5 is now -5400 for every quantity because the contribution per unit is zero. Request target 0 again. No finite changing-cell value can solve this model. Decline any proposed input when the dialog reports failure or the recalculated result does not meet the target. Do not promise a particular iteration count or failure wording across builds. Restore the four numeric inputs explicitly: B1=100, B2=45, B3=18 and B4=5400. Retain the formula =B1*(B2-B3)-B4 in B5 and check B5=-2700. Replace the old target-specific test in D1 with =ABS(B5+2700)<0.000001; expect TRUE for this restored starting model. The former 1350-target test would correctly return FALSE here and is no longer the applicable check.
Troubleshooting, saving and verification limits
A formula displayed as literal text cannot be solved; consult formula text instead of a result. A formula that never references B1 cannot respond to changing B1. Check parentheses: B1*(B2-B3)-B4 is different from B1*B2-B3-B4. If the sheet does not recalculate, check Tools > Cell Contents > AutoCalculate before interpreting the outcome.
Save as ODS, reopen, and verify the stored quantity and profit. Goal Seek is a one-time operation, not a persistent instruction to re-solve whenever prices change. Run it again after changing assumptions. Restore the saved clean file or explicitly reset the four numeric inputs B1=100, B2=45, B3=18 and B4=5400 when starting over. Preserve B5 as =B1*(B2-B3)-B4, and clear D1 or reset it to the starting-model test =ABS(B5+2700)<0.000001 (TRUE); do not rely on an Undo history surviving reopening.
This tutorial is documentation-qualified for Apache OpenOffice Calc 4.1 desktop. The fixture and exact expected values were independently calculated, but no native application build or screenshot was captured. Nonlinear models can have multiple roots or fail to converge; the transparent linear model here deliberately avoids claiming general solver reliability.