How to move an Excel process into a web app: classify sheets, turn formulas into rules, and cut over without losing the numbers.
A spreadsheet that has worked for years is in fact a business specification written in a language its owner understands. Every formula is a decision, every calculated column is a rule, and every sheet is a step in a process. That is why moving it into a web app is hard: not because the technology is complex, but because the logic is scattered across cells nobody thinks of as logic.
This article is about execution, not the decision. If you are still asking «should we move at all?», that is covered in internal tools versus spreadsheets. If you have decided to move, the question becomes: how do we extract the logic without losing something that works, and how do we prove the new system gives the same result before switching off the old one?
Read the workbook as a system, not a document
The first mistake is opening the file and copying columns into tables. Columns are not the design; they are the result of a design. Before any table, classify the sheets. An input sheet is what a human types. A reference sheet holds lists and fixed rules. A calculation sheet is what runs automatically. An output sheet is what gets printed or sent. An archive sheet is kept and not edited.
Classification exposes a common problem: one sheet plays more than one role. It contains inputs, calculations, outputs, formatting and a dropdown in the same range. That sheet is the hardest to move, because separating the roles is half the work. Whoever does not separate them in analysis will separate them by accident in the build.
Then draw the value path: where a record enters, what changes it, where it is calculated, and who reads the result. The path often crosses sheets and ranges nobody mentions, because people remember what they touch, not what they depend on. That path is what becomes a flow in the app, not the shape of the columns.
From sheets to tables
The first rule: one row equals one record. A good table does not mix two record types in one sheet, does not repeat a header in the middle of the data, and does not use merged cells to represent a relationship. Merging and formatting are presentation, not structure. If structure is hidden in presentation, the app will inherit the error.
The second rule: separate entities from events. A customer is an entity, an order is an event, and a payment is another event. Many sheets mix all three in one row because it is convenient for display. Convenient for display is not convenient for storage. Once separated, reporting becomes possible without copies, and a customer's details are edited once instead of in twenty rows.
The third rule: keep a stable identifier for every record. If the file uses a customer name as a key, you will find two spellings of the same name and treat them as two customers. An identifier does not change; a name does. If there is no identifier, create one during analysis before moving any row.
From formulas to rules
Not every formula is a rule. Some formulas are display calculations, some are validation, some are lookups, and some are conditional formatting. Classifying them determines where they live in the app: a computed field, an input validation, a scheduled job, or a report. Whoever copies the formula as it stands into code copies a shape, not a meaning.
Every formula needs three things before it becomes a rule: what it does in business language, a known input and output example, and what happens in the edge case. A formula whose owner cannot say why it exists is not a rule but a historical trace. Ask for the reason; do not infer it from the syntax.
Watch for formulas that work by accident. A missing reference returns zero instead of an error, a range expands automatically and captures a new row, or sheet order makes a function work only today. These are not rules; they are deferred errors. A good app makes them explicit: either a written rule or a visible error.
What you find in Excel and what it becomes
The table maps recurring workbook patterns to their equivalent in an app and to what must be tested after the move. Not every pattern is bad; some are clever. But undocumented cleverness does not transfer, and the point of the table is to turn it into something testable.
| What you find | What it becomes | What to test |
|---|---|---|
| Merged headers and multi-level columns | Flat fields in a logical order | Every old row finds its fields without ambiguity |
| A VLOOKUP into a reference sheet | A reference table and a key relationship | Missing and duplicate values in the reference |
| A long nested IF | A validation rule or a computed state | Every branch, including the one that rarely happens |
| A pivot summary | A report or query | Totals match the source after filtering |
| A manual override on a formula | A recorded exception with reason and permission | The exception does not become the default rule |
| A macro triggered by a button | A procedure or a scheduled job | What happens when it fails halfway through |
| Cell colour as status | An explicit status field | Every old colour has been mapped to a value |
| A hidden sheet holding rules | A settings or rules table | Every rule is used and documented |
The most dangerous row is «a manual override on a formula». It is common in real files: the user types over the cell because the formula is wrong in a particular case. A blind migration removes that correction or turns it into an error. The answer is not to forbid the exception but to record it: who made it, why, and what rule should have existed.
What Excel allows that a database will not forgive
In Excel, the same column can hold numbers, text and dates in different rows, and the display still works. In a database, that is not a column but a mess. Migration exposes this freedom; it does not create it. That is why the cleaning stage is often longer than expected.
Blank versus zero an empty cell is not zero, and a database distinguishes them. Decide which means «unknown» and which means «actually zero».
Dates stored as text a date written in a human format may be read incorrectly. Standardise the format before the move, not after.
Duplicate keys a customer name or order number may repeat in different forms. Define the real key before building relationships.
Hidden spaces a trailing space makes two identical values look different. Clean before comparing, not after the comparison fails.
Circular references a formula depending on its own result may work in Excel under certain settings and fail in a system. Find them and write the correct rule.
Decimal precision financial totals may differ in the last digit because of storage. Set a rounding policy before explaining the difference to the entity.
From reading to shipping
Want this built, not just explained?
Bring us the problem behind the article. We will tell you what it takes, what it costs, and whether we are the right team.
This list is not a defect in Excel; it is the price of flexibility. A system buys accuracy on condition that you pay once, during cleaning. Whoever postpones cleaning until after launch pays many times, in every report that disagrees.
Cut-over without losing the logic
Before launch, recalculate a known period. Choose a month or a full cycle, run the numbers in the new system, and compare them with the old file row by row and total by total. The requirement is not that every formatted cell matches, but that the values decisions rely on match. That test alone catches most migration errors before a user sees them.
Then run the new period with limited parallelism: the new system is the record, and the old file is a comparison reference only. Do not enter data twice forever; set a duration, a sample and an exit criterion. If a difference appears, do not fix it in the report; fix it in the rule or the data, then recalculate.
Most importantly, keep the old file for reading. Do not delete it, do not edit it, and make it a frozen archive. The need for it will appear at the first question about an old number, and the frozen copy is what answers. We covered how to test the process before launch in our pre-launch testing checklist.
If the scope is more than one file, treat it as a data migration rather than a file copy: inventory, clean, transform, reconcile and run in parallel. We covered that in our data migration strategy. The only difference here is that the source is a working file rather than an old system, which makes it closer to the heart and harder to convince people to stop using.
If you want to see how we build this kind of tool, it is our web platform development work, run after launch under enterprise systems. The difference between «an app that works» and «a process that does not return to Excel» is what we commit to at handover: written rules, a reconciliation test, and an archive you can return to.
Every sheet has one role input, reference, calculation, output or archive, not several in the same range.
Every record has a stable identifier not dependent on a name or text that may change, and present in every related table.
Every formula has a written rule in business language, with a known example and an edge case, and an owner who approves it.
Manual exceptions are recorded who made them, why, and what rule should replace them.
A reference period was recalculated and matched on the values decisions rely on, not on formatting.
A written cleaning plan for blanks, zeros, dates, keys and spaces, before loading rather than after.
An owner for the process after launch who approves results and changes, not only a technical team.
A frozen archive of the old file read-only, available to anyone asking about a past number or decision.
Frequently asked questions (FAQ)
Can Excel stay as the input interface?
It can, as a transition stage or a periodic import tool, but not as a permanent source of truth. If entry stays in Excel, concurrency, permissions and audit return through the back door. Better for entry to live in the system and exports to go to Excel for analysis.
Do we rewrite the formulas exactly?
No. We write what the formula means, not how it was written. Some formulas contain guards for cases that will not occur, and some contain an error people have adapted to. A literal copy preserves both. Better to write the intent and test it against real examples.
How do we know the numbers are right?
By recalculating a known period and comparing results, not by comparing screens. Choose the most complex period, because it exposes edge cases. Then have the business owner sign the reconciliation, not the developer alone. A reconciliation signed by the person who understands the decision is stronger than a technical report.
What happens to the macros?
They are read as requirements, not as code. Some are formatting that can be dropped, some are workflow that must be built, and some are glue between files that should not remain. Classify them before the move, and do not migrate a macro because it works; migrate what it does and why.
How long does the move take?
It depends on the number of sheets, the number of undocumented rules, data quality and how many people depend on the file. One file with clear formulas differs from a workbook linking five files and a macro. Duration cannot be estimated before reading the workbook, and anyone who estimates without it is guessing.
Sources
Microsoft Support — Excel — reference for functions, tables and data validation.
Microsoft 365 — Excel — an overview of workbook and collaboration capabilities.
OWASP — Input Validation — why data is validated at the boundary, not only in the interface.
W3C — WCAG 2.2 — form, validation and error requirements in the new interface.
Cover image: Jakub Żerdzicki, Unsplash License, via Unsplash.

