A correct calculation can become wrong if its range or references omit data after editing.
Check what happens when a row is copied, added or removed. Make reference behaviour part of the specification.
The bigger picture
A spreadsheet formula is a program operating on a particular data layout. Its meaning depends on cell references, value types and how missing or invalid entries are handled. A formula that returns a plausible total can still omit rows or count the wrong records.
- Describe table
- Write formula
- Test known cases
- Inspect references
Concepts to keep close
- Range
- The cells a calculation reads.
- Relative reference
- A reference that changes when a formula is copied to another location.
- Validation
- Checking that an input or result meets a defined requirement.
Reasoning through the problem
Inspect the actual included range.
Add a known test expense.
Verify that copied formulas reference the intended cells.
Use the idea carefully
Describe columns, units and the intended calculation before asking for a formula. Test a small table where you know the answer independently. Add an empty row, a boundary value and invalid text. Inspect copied formulas and confirm that ranges expand as intended. Retain the original data and a note of the transformation.