Workshop admin · 10 seconds instead of an evening

Two messy exports.
One clean customer list.

The till system and the newsletter tool each hold part of the shop's customers, with capitals and stray spaces everywhere. This tool merges them, removes duplicates by email, and hands back one file ready to upload.

Till export

900
rows, with an export-date line on top

Newsletter export

600
rows, first and last name split

After the merge

1,060
unique customers · 401 duplicates removed · 39 rows without an email set aside for checking

Merge your two exports

Drop the two CSV files below, or load the fictional sample exports. Everything runs in your browser; no file is uploaded anywhere. The shop also receives the same logic as a Python script to run locally.

Duplicates are matched by email only, so two different people are never merged.

Rows in

0

Duplicates removed

0

No email (skipped)

0

Unique customers

0
clean_customers.csv
NameEmailLast visitPhoneSource
skipped.csv rows with no email address, so you can ask for one
NameLast visitPhoneReason

How it works

Three steps, the same in the browser and in the script.

STEP 1

Read both files

The export-date line at the top of the till file is skipped. Headers are matched loosely, so "E-mail" and "email " both work.

STEP 2

Clean and compare

Emails are lower-cased with spaces removed, then compared. Names are trimmed and capitalised; "van" and "de" stay lower case.

STEP 3

Write two files

One clean list with the till columns, and a skipped file so nobody disappears without being noticed.

Rules we agreed

Written down so the result is predictable every time it runs.

✓
Duplicates are detected by email only. Same email, same person.
✓
When a customer is in both files, the till row wins (it has the phone and the last visit).
✓
Rows without an email go to skipped.csv instead of being dropped silently.
✓
Output columns: Name, Email, Last visit, Phone, in the order the newsletter tool wants.
✕
No matching by name. Two people can share a name, so that is left out on purpose.
✕
No phone-number formatting. Numbers are copied exactly as exported.