CASE 01 · Portfolio
From 650 minutes to 48: building a data pipeline inside Excel
Monthly work 650 min → 48 min−93%65 indicators
In three sentences
- 01
Source files→Clean database
First, clean the data. Different sources spell the same company in different ways. The system standardises the names and blocks duplicates first, and every record can be traced to who wrote it and when.
- 02
Database→Share · rank · change
Then let formulas do the calculating. Market share, rank and rates of change are calculated instantly. Switching the month, the change basis or the merger basis requires no rework.
- 03
Calculated results→PDF report · meeting slides
Finally, publish the report in one click. The results are frozen as plain values that never shift on recalculation, printed straight for senior executives or pasted into meeting slides. Errors from manual copy-and-paste have all but disappeared.
The problem: a report that went wrong every month
Every month, senior executives need a report on "how each of our business lines compares with our peers", covering 65 indicators. Each one is viewed over the last three years, the last twelve months, and year-to-date against the same period last year, together with market share, rank and change.
The data comes from five or six places: internal systems, public data from the exchanges and industry associations, data exchanged among peers, and files supplied monthly by each business unit. Every source has its own format; even the same company's name is written differently.
The original process was to copy and paste item by item and update page by page. It took a full day every month, and almost every month something was pasted wrong.
The constraint: no database, no IT scheduling
The ideal answer is a data warehouse plus a BI tool, but at the time Excel was all I had. Rather than wait for resources, I chose to build the basic principles of data engineering with the tools at hand.
The design: three modules, one job each
I split the process into three independent files, each responsible for one thing:
| Module | What it does | Data-engineering equivalent |
|---|---|---|
| Load | Standardise names, validate, store in a single database | Extraction and cleansing (the E and T of ETL), master data management |
| Calculate | Formulas calculate market share, rank and change on the fly; the month and comparison basis can be chosen | Semantic layer / metrics layer |
| Report | One click turns it into a report of fixed values | Publishing layer, data snapshot |
Why split it this way:
- Load cares only about "clean": no calculations at all, so the data stays free of duplicates and traceable.
- Calculate cares only about "flexible": the formulas are heavy and slow, but the month, the change basis (change in business volume itself, or change in market share) and the merger basis can be switched freely.
- Report cares only about "stable": fixed values only, so the file is light, never shifts on recalculation, and is fit for sending and archiving.
With the three layers separated, a problem in any one of them never spreads to the other two.
- Problem
- The same company has different names in different sources, and file formats are inconsistent, so manual matching is error-prone.
- How
- Sources: internal company systems, public data from the exchanges and industry associations, peer-exchange data, monthly Excel files from each business unit, API data
- Each month, that month's source files are gathered into one folder and kept as raw data
- Result
- All raw files are kept, so anything can be verified later if needed.
- Problem
- If the data is not clean, fast calculation downstream is worthless.
- How
- Name standardisation: a mapping table turns every spelling into one standard name; anything that does not match is flagged immediately
- Unique key: one record per "year + month + company", preventing duplicate writes
- Automatic checks: missing data, totals that do not reconcile, and too few companies all raise a warning
- Write log: every load is recorded and traceable
- Result
- A clean, duplicate-free, traceable database.
- Problem
- Executives want many views: the last 3 years, the last 12 months, year-to-date versus the same period last year, market share, and changes in rank.
- How
- Formulas calculate values, market share, rank and rates of change for each business line directly from the database
- Choose the month: pick the month to view and every period comparison updates with it
- Change basis: a button switches between "change in value" (how much the business itself grew) and "change in market share" (whether we gained or lost ground against peers)
- Merger-basis switch: one click toggles between pre-merger and post-merger comparison bases; which companies are merged is set by a mapping list that can be extended at any time
- Result
- Change a condition and the numbers update instantly, with no rework.
- Problem
- The calculation file is heavy and shifts whenever formulas recalculate, so it is unfit for sending or archiving as is.
- How
- One click pastes the results into about 45 report sheets as plain values
- Headers keep their formatting while the body receives values only; one set is produced pre-merger and one post-merger
- Pre-print tidying (grouping, fonts, hiding sheets) is also done by button
- Result
- A light file with fixed numbers, ready to print to PDF.
- Problem
- Senior executives need a reliable, timely peer comparison every month.
- How
- A peer-comparison report on 65 indicators, produced every month
- Meeting slides: because the data is already structured, the report extends directly into table layouts for meetings; once pasted into PowerPoint only fonts and styling need adjusting
- When a department needs a different format at short notice, it is produced from the same database by adjusting parameters
- Result
- Routine report 650 → 48 min per month; ad-hoc requests 30 → 5 min each; meeting slides 10–30+ min → about 1 min per table (author's estimate).
Four key decisions
1. Fix the names before the numbers
The same company may be written three or four ways across sources. I built a mapping table that ties every spelling to one standard name; any name that does not match is flagged before loading, instead of quietly becoming a new company.
In data work this is called master data management (MDM). In my experience, most reporting errors are not miscalculations but "we thought it was the same company, and it wasn't."
2. Every record has a unique identity
Each row in the database uses "year + month + company" as its unique key (primary key). Duplicate writes are blocked or overwritten, so one company never has two figures for the same month. Every load also leaves a log entry: who, when and what was written can all be looked up.
3. Keep reporting separate from calculation
The calculation file is full of formulas: it recalculates on opening, and a broken link can throw the numbers off. So the last step is always to "freeze" the results into fixed values before handing them over. A file an executive receives shows the same numbers when reopened a year later.
4. One dataset, many outputs
Once the data is structured, the report is no longer the only output. The monthly written report, ad-hoc departmental queries and the tables for meeting slides all come from the same database: meeting tables reuse the report's structure directly, and once pasted into PowerPoint only fonts and styling need adjusting.
In data work this is called single source of truth: numbers are produced in one place only, so reports and slides never tell different stories.
Result
- Monthly routine work: about 650 min → 48 min (−93%).
- Ad-hoc requests: about 30 min → 5 min each, because every format a department asks for can be produced from the same database by adjusting parameters.
- Meeting slides: about 10–30+ min → about 1 min per table (author's estimate).
- Pasting is now done by code, and errors from manual copy-and-paste have all but disappeared.
- Review time for managers fell too: the data has already been checked, so they only need to look at the conclusions.
What I learned
A tool's limits are not the limits of your thinking. Layered data, unique keys, master data and snapshots hold true in Excel just as they do elsewhere. Moving to SQL or a BI tool, the architecture carries straight over; only the implementation changes.
Times and ratios are based on the author's own benefit calculation sheet (August 2026 version); meeting-slide times are the author's estimate. No company names, internal systems, file details or business figures are disclosed.
Want to talk about a data or reporting problem? Contact me on LinkedIn →