Data entry and cleanup · demo project, fictional company
PDF and scan to Excel, cleaned and checked
Three messy sources, one clean Excel sheet: a scanned invoice batch, a phone photo of a handwritten order form and a CRM export with duplicates and mixed formats. Every row keeps its source, and a check report shows what was merged, what is still missing and that the money ties.
Sample data: the company, customers and every number are fictional.
Order data often arrives in pieces: paper invoices scanned in a batch, a form someone photographed on a phone, and an export from the CRM. Typed into one sheet by hand, the same order gets counted twice, dates mix day and month, and a smudged number becomes a guess nobody can trace later.
Before: the three source files
Scanned invoice batch, page 1: two invoices, the quantity on one line is smudged. Open full sizePhone photo of a handwritten phone-order form: one item code left blank. Open full size
The CRM export (03_crm_export.csv, 18 order lines) has the usual problems. A few of the values as they came in, and what they became:
In the file
In the clean sheet
03/07/2026 7-Mar-2026 3/11/2026
2026-03-07 2026-03-07 2026-03-11
quellbrook cafe Varrow St. Deli Pellicott Mkt
Quellbrook Café Varrow Street Deli Pellicott Market
lid-12 BAG KRAFT
LID-12 BAG-KRAFT
$150.00 USD 120 30
150.00 120.00 30.00
the same order line twice
counted once, both rows named in the log
2026-02-30
left blank, sent to the issue list
Report total, 3,600.00
not an order line: skipped and used as a control total
All 43 reformatted values are listed on the CHANGE_LOG sheet with the rule used.
After: one sheet you can trace back
Source to sheet: invoice INV-24052 on the scan and the same three lines in CLEAN_DATA. The smudged quantity stays blank and the row is held for review. Open full sizeCLEAN_DATA with a filter on every column, status and source reference per row, and the issue list with raw value, suggestion and status. Open full size
The check report
The QC_SUMMARY sheet counts everything with formulas, so you can check each number yourself in the workbook.
Rows
Order lines read from the three files (8 + 4 + 18)
30
Exact duplicates merged
− 2
Unique records
28
Ready to import
23
Held for review (3 missing values, 1 impossible date, 1 unreadable number)
5
Near match kept, not merged (same customer, item and amount on another order)
1
Money (USD)
Scanned invoices
1,600.00
Handwritten form
800.00
CRM export
3,600.00
Total before removing duplicates
6,000.00
Duplicate rows removed
− 300.00
Total of the clean sheet
5,700.00
Difference
0.00
Gates
Every input row accounted for
PASS
Every duplicate logged with the row it was merged into
PASS
Printed document totals match the extracted lines
PASS
Money reconciled
PASS
No guessed values (flagged cells are still blank)
PASS
Whole file ready to import
FAIL
The last gate fails on purpose: 5 records need an answer from the client before the whole file can be imported. Nothing was filled in by guessing; each open item has a suggestion, for example "amount 150.00 / unit price 25.00 = 6: please confirm".
QC_SUMMARY with row counts, money reconciliation and pass/fail gates, and DOC_TOTALS: the printed total of each document against its extracted lines. Open full size
How it was tested
20 of 20 automated tests passed (pytest). The expected numbers were written down before the cleanup script existed.
A separate check script recounts everything from the raw files its own way and compares it with the workbook, the import file and the JSON report: 0 differences.
5 planted bugs (review rows dropped, a missing quantity guessed, the CSV total row read as an order, a wrong duplicate key, a near match merged) each made the check fail.
Two transcripts (pass A and pass B) of the scan and the photo were compared cell by cell: 2 differences, 1 settled from the paper, 1 left as unreadable.
Each invoice, the form and the CRM report total match the sum of their extracted lines.
48 formulas in the workbook, 0 errors. The source files are unchanged (SHA-256 checked).
Four scenarios, the same checks
The three sources above are three scenarios of their own. A fourth, a product catalogue, shows the same method on a different source.
Scanned invoices
Shown above
Source
01_invoice_batch_scan.pdf, 8 order lines on 2 pages.
Output
One row per invoice line with the invoice number, page and line.
Errors caught
A smudged quantity is left blank and listed. Each invoice total is compared with its extracted lines.
Handwritten order form
Shown above
Source
02_phone_order_form.jpg, 4 order lines, photographed at an angle.
Output
The same columns as the invoices, so both sources sit in one sheet.
Errors caught
A blank item code is left blank and listed. Two transcripts are compared: 2 differences, 1 settled from the paper, 1 left as unreadable.
CRM customer export
Shown above
Source
03_crm_export.csv, 18 order lines with mixed formats.
Output
Dates in one format, one spelling per customer and per item code, amounts as plain numbers.
Errors caught
Exact duplicates merged and logged (2 in this sample, one of them across two files), an impossible date left blank, a report total row skipped.
Product catalogue
Described, not part of the sample pack
Source
Supplier price lists as PDF or spreadsheet, one per supplier.
Output
One row per product: code, name, unit, price, category, supplier.
Errors caught
The same code listed twice, one code with two prices, prices with currency symbols, units missing.
What the output files contain
Every column in the clean sheet has one type, one format and one rule for blanks. A blank is never a guess: it goes to the ISSUES sheet with the source page and line.
Columns of clean_data.csv and the CLEAN_DATA sheet
Column
Type
Format and example
Blank means
record_id
Text
R01, R02, ... one per unique record
Never blank
status
Text
READY or NEEDS REVIEW
Never blank
order_no
Text
INV-24051
Not found in the source: listed in ISSUES
line_no
Whole number
1, 2, 3
Not found in the source: listed in ISSUES
order_date
Date
YYYY-MM-DD, for example 2026-03-07
Missing, or not a real date
customer
Text
Standard spelling, for example Quellbrook Café
Not found in the source: listed in ISSUES
item_code
Text
Upper case with a hyphen, for example LID-12
Code missing or unreadable: listed in ISSUES
description
Text
Product name as in the source
Not stated in the source
qty
Whole number
4
Unreadable or missing, never guessed
unit_price
Number
2 decimals, no currency symbol: 45.00
Unreadable or missing, never guessed
amount
Number
Line total, 2 decimals, no currency symbol: 180.00
Unreadable or missing, never guessed
source_file
Text
01_invoice_batch_scan.pdf
Never blank
source_ref
Text
Page, document and line: p1 INV-24051 line 1
Never blank
issue_ids
Text
E01, linked to the ISSUES sheet
No open issue on this row
Cleaned_Orders.xlsx: 10 sheets, 28 records, with the check report as formulas.
clean_data.csv: 28 rows and 14 columns, all records including the 5 held for review.
import_ready.csv: 23 rows and 12 columns, the ready rows only, without status and issue_ids.
CSV files are UTF-8, comma separated, dates as YYYY-MM-DD, amounts with a dot and 2 decimals.
How I handle your files: security and retention (example)
How I work
We agree the columns and formats first. A free pilot of 5 to 10 finished rows is always included, and you approve it before the full batch starts.
Scans, photos and handwriting are entered in two separate passes that are compared cell by cell. A value I cannot read stays blank and goes on the issue list with the source page and line.
Duplicates are merged only on a clear key (order number and line); anything that only looks similar is listed for you to decide.
You get the clean sheet, an import file with only the ready rows, the issue list, and the check report with row counts and totals.
Your files stay within the agreed scope; this page uses fictional data only.
Security and retention
Example terms. I confirm or change each line in writing before any file is shared.
Who sees your files. Only I open them. Nothing is forwarded to anyone else.
NDA. If you have an NDA, I sign it before you send the first file.
Transfer. Files move through the channel you choose: the platform messages, your own shared drive, or a ZIP with a password sent separately.
Personal data. Tell me before sending files that contain personal data. I work only with the columns we agreed.
Retention and deletion. Source files and working copies are deleted 14 days after you accept the delivery, or sooner if you ask, and I confirm the deletion in writing.
Certification. No security certification is claimed. This page describes how I handle files.
Pricing tiers (example)
Example tiers only. The limits, times and prices are placeholders that show how a quote is laid out; the real figures are agreed per project and confirmed in writing before work starts.
Example tiers, prices in USD
Tier
Limit
Turnaround
Revisions
Example price
Starter
Up to 100 rows
1 working day for typed or digital sources; 2 working days for scans, photos, handwriting
1 round
USD 15
Standard
Up to 500 rows
2 working days for typed or digital sources; 3 working days for scans, photos, handwriting
2 rounds
USD 40
Large
Up to 2,500 rows
4 working days for typed or digital sources; 6 working days for scans, photos, handwriting
2 rounds
USD 125
Limits are counted in rows of the clean sheet. A row is one record: an invoice line, a form entry or a CRM contact. A scan or photo is counted by the rows it holds. A free pilot of 5 to 10 finished rows is always included, and you approve it before the full batch starts. Above 2,500 rows, the price is quoted per project after the pilot. A revision round is one list of corrections to the delivered file; a new batch of source files is a new quote.
Turnaround by volume (example)
Example times. Working days start when the final source files arrive and you approve the pilot rows.
Working days by number of rows
Volume
Typed or digital sources
Scans, photos, handwriting
Up to 100 rows
1 working day
2 working days
101 to 500 rows
2 working days
3 working days
501 to 2,500 rows
4 working days
6 working days
2,501 to 10,000 rows
6 to 8 working days
9 to 12 working days
More than 10,000 rows
Agreed after the pilot
Agreed after the pilot
Request a quote
Answer the questions and the request is written for you as plain text. This form does not send anything: copy the text into your message. A free pilot of 5 to 10 finished rows is always included, and you approve it before the full batch starts.