Computational Engineering / Programming and automation for engineers
Spreadsheet safety
Inspect formulas and dependencies.
Lesson review: expert verification remains open
This lesson has received a full-context editorial review and a check of its technical explanations. Selected arithmetic has been checked separately. This is not independent engineering sign-off.
Checks needed for project use
- A computational engineering reviewer must check algorithms, convergence claims, statistical assumptions and numerical examples beyond the cases explicitly recorded.
- Review automation specification, tests, spreadsheet dependencies and change control.
These are educational models and exercises. Check their assumptions before using the results. The full technical content and every diagram have not yet been independently verified.
Concrete and steel calculations retain their stated first-generation Eurocode teaching basis. Use the standards and amendments specified for your project; do not mix generations without an appropriate design basis.
Read the lesson register and outstanding review notesWhy this matters
A spreadsheet can display the expected number even after a formula is overwritten. Input changes and formula inspection reveal faults that appearance alone may miss.
A formula should retain its input dependencies
- Inputs
- Area A and loads g and q need explicit compatible units.
- Total
- Q = A(g+q) should change when the relevant inputs change.
Check the calculation behind the cell
Separate inputs from formulas and give each engineering quantity a unit. Inspect dependencies, relative references and external links. Record the source and purpose of constants; a value such as 1.35 cannot identify its own design basis.
Use a known-answer example and vary important inputs. If a total load should rise when imposed load rises, test that response. A fixed displayed value may indicate a constant where a formula was intended, a stale linked value or a calculation setting that needs investigation.
Check the engineering balance independently where possible, such as total intended load against reactions. Record workbook and data versions, review macros and protect the calculation structure appropriately. Colour and layout help users find inputs, but they do not verify formulas or assumptions.
Worked example
Find a hidden hard-coded load
Given
- Area 576 m²
- Permanent load 4.8 kN/m²; intended imposed load 4.7 kN/m²
- Displayed total 3,072 kN
Find
Recover the imposed-load value actually used.
Try it
Spreadsheet audit
A fictional structural workbook containing every fault on the list. Flag the ones you think are wrong, then open a cell to see what it really contains. Nothing here comes from any real workbook.
Select a cell to inspect it. Flag the ones you believe are faulty. The workbook contains 8 faults among 10 cells.
| Cell | Displays | Inspect | Flag |
|---|---|---|---|
| B4 | 576 | ||
| B7 | 9.5 | ||
| B9 | 1.35 | ||
| D12 | #REF! | ||
| E15 | 48200 | ||
| F20 | 0 | ||
| C31 | 142.6 | ||
| H3 | 7.2 | ||
| Module1 | Sub Recalculate() | ||
| B22 | 5472 |
- Faults found
- 0 of 8
- Correct cells flagged
- 0
- Answer-changing faults still missed
- 6
The distinction that matters
- Some faults change the answer now. Others — a hard-coded span, an unexplained constant — do not yet, and are waiting for the day somebody changes an input.
- A workbook can be entirely correct today and structurally unsafe as a document. Both classes have to be fixed, and only the first announces itself.
- A check row — a total computed a second way that must agree — would have caught three of these the moment they happened.
What this shows: A spreadsheet shows numbers and hides logic — and the commonest serious fault, a formula overwritten with a value, leaves no visual trace at all.
Check yourself
Which spreadsheet fault is hardest to detect by looking at the workbook?
Practice
A spreadsheet computes a total floor load as area × (permanent + imposed). The area cell reads 576, the permanent 4.8 and the imposed 4.7, and the total reads 3072. What value has replaced the imposed load in the formula, in kN/m²?
Check yourself
What is the fundamental problem with a spreadsheet as an engineering tool?
Summary
- Inspect formulas and dependencies.
- Test how outputs respond to changed inputs.
- Keep units, sources and versions with the workbook.
Sources & further information
The diagrams and worked explanations are original teaching material. Equations follow the stated idealisations; their assumptions and units are given with each calculation.
Reviewed 19 October 2026: explanations, teaching calculations and figures checked within the recorded course audit. This is not independent engineering approval. Review automation specification, tests, spreadsheet dependencies and change control.
Continue the course
A checked calculation must still receive the intended information. Follow the data through the handovers that feed an analysis.