Moving spreadsheet business rules into software
Identify and test the calculations and decisions hidden in spreadsheets before replacing them.
Inventory the working files
Ask the people who use each spreadsheet which version is current and what decisions it supports. Identify formulas, lookup tables, manual overrides and links to other files. A visible column may depend on a rule stored somewhere else.
Document the intended rule
Work through representative examples with the business owner. For example, a quote sheet may apply a discount only after an authorised review. Record the intended calculation and exceptions rather than assuming every existing formula is correct.
Compare results in a test
Use fictional inputs to calculate expected outputs independently and compare them with the new application. Include missing values, boundary cases and a changed input. Investigate differences before deciding whether the spreadsheet or the new rule is correct. Check a boundary case just below and just above an approved threshold, as well as a record with the necessary input missing.
Plan ownership and change
Agree who can approve a future change to the rule, how the change is tested and how affected reports or documents are updated. Keep a record of the agreed version so staff can understand how an earlier result was produced.