# Clean Up a Messy List With AI: Names, Dates, Numbers

Source: https://gravam.com/blog/clean-messy-list-with-ai
Author: Tan Gravam
Published: 2026-11-25
Reviewed: 2026-11-25
Summary: Fixing names, dates and phone numbers one cell at a time is busywork. One request cleans the list, keeps the original beside it, and flags what it can't know.

**Half the names in capitals, dates in three formats, phone numbers with and without spaces.** Fixing it cell by cell is the busywork. **With AI it is one request: the cleaned value next to the original, and a flag where the assistant can't know the answer.**

## The task, by hand

Every column has its own rule, and every row breaks it differently. The slow part isn't typing; it is deciding, for each odd value, what it was meant to be.

## The demo

Illustrative rows, not real people:

```text
van Dijk, Pieter | 03-12-2025   | +31 6 1234 5678
MARIA LOPEZ      | 2025/12/04   | 0612345679
j. smith         | Dec 5, 2025  | 06-12345680
```

The request:

```text
Clean this list. Names: First Last, normal capitals, keep particles like
"van" in lower case, don't invent first names. Dates: YYYY-MM-DD. Phone
numbers: +31 followed by the number, no spaces, no leading 0. If a value
is ambiguous, like a date that could be day-month or month-day, don't
choose: write AMBIGUOUS. Show each original value next to the cleaned one.
```

What came back:

```text
Name                                Date                          Phone
van Dijk, Pieter -> Pieter van Dijk 03-12-2025 -> AMBIGUOUS        +31 6 1234 5678 -> +31612345678
MARIA LOPEZ -> Maria Lopez          2025/12/04 -> 2025-12-04       0612345679 -> +31612345679
j. smith -> J. Smith                Dec 5, 2025 -> 2025-12-05      06-12345680 -> +31612345680
```

Two answers matter more than the rest. "j. smith" stayed J. Smith: the assistant didn't invent a first name. And 03-12-2025 was flagged. Tell it "dates in this list are day-month-year" and run it again; it becomes 2025-12-03.

## The steps to copy

1. Copy the messy columns, with a few dozen rows at most.
2. Paste them into the assistant your company allows, then the request. Write one rule per column, in your words.
3. Read the AMBIGUOUS cells, answer them, and run the request again.
4. Ask: "Now give me only the cleaned columns, with a tab between columns." Before you paste, format the phone column as Text, or Excel drops the +. Paste next to the originals, never over them, and compare a few rows.
5. For a long list, ask instead: "Write me the Excel formulas to do this, and where to put them."

## Before you trust it

- **Names it "corrects".** O'Brien, McDonald, double surnames: check that names you know came back right.
- **Rows that changed number.** The cleaned list must have as many rows as the original. Count.
- **Particles and conventions.** Whether "van" is capitalised depends on where it stands and the country's custom. Decide the rule, and write it in the request.
- **Personal data.** A contact list belongs in the assistant your company approves.

Clean lists are what makes the next steps work: [comparing two lists](https://gravam.com/blog/compare-two-lists-with-ai) on IDs, and [merging spreadsheets from colleagues](https://gravam.com/blog/merge-spreadsheets-with-ai) into one.

## Questions this article answers

**Q: Can AI clean up data in a spreadsheet?**

For a list of up to a few dozen rows, yes: paste it into an AI assistant, describe the format you want for each column, and ask for the original value next to the cleaned one. For longer lists, ask the assistant for the Excel formulas or steps instead, so Excel does the work on every row.

**Q: How do I stop AI from guessing ambiguous dates?**

Tell it not to. A date like 03-12-2025 can be 3 December or 12 March. Ask the assistant to mark such values AMBIGUOUS instead of choosing, then tell it which order your source uses and run the request again.
