All articles
Analytics

5 Claude and Gemini Prompts to Clean Messy HR Data in Excel

Clean an ATS export one column at a time, tell the AI to flag what it can't read instead of guessing, and check the raw date, not the AI's label.

  • Saves time
  • Consistent decisions

Oct 30, 2026 · 6 min read

Six of the 20 dates in our made-up export could be read two ways. "04/03/2025" is March 4 in Tel Aviv and April 3 in Chicago. A tool that quietly picks one moves candidates around your time-to-hire report.

The short answer: don't ask an AI to "clean this spreadsheet". Paste only the column you're fixing plus a row number, with a short prompt that says what may merge, what must stay apart, and to write NEEDS REVIEW instead of guessing. In our test, Claude Opus and Gemini 3.8 Flash mapped every title and location correctly and flagged all 6 ambiguous dates, but Gemini attached the wrong day-month label to 2 of them. Read the raw value, not the label.

Which prompt for which mess

What you see in the export Use
"Sr. SWE", "Senior Software Engineer", "Snr Software Eng." Prompt 1: job titles
"TLV", "Tel-Aviv", "Tel Aviv-Yafo", "remote" Prompt 2: locations
2025-03-04, 04/03/2025, 45720, "4 Mar 2025" in one column Prompt 3: dates
"Rejected", "Reject - withdrew", "No show", blank Prompt 4: statuses
You just finished prompts 1-4 Prompt 5: the count check

If a tool says your rules clash, fix the prompt and rerun it. If it says nothing, that doesn't mean the rules are fine (see the box under prompt 2).

Before you paste, delete every column the fix doesn't need: names, emails, notes. A title column has no reason to travel with a candidate's name.

The five prompts

Prompt 1, job titles. Use when one job is spelled five ways. Both kept "Software Engineer II" apart from Senior and refused to guess what "PM" meant. They named the senior role differently, so add your own list of standard titles if you have one.

You are helping me clean a job title column from an applicant tracking system export.
Task: map every raw title below to one standard title.
Rules:
- Merge only titles that mean the same job at the same level. Spelling, abbreviations and case differences can merge.
- Never merge across levels (for example "II" and "Senior" stay different) or across different jobs that share words (for example "Product" and "Project").
- If a raw title is too vague or could mean two jobs, do not guess. Put "NEEDS REVIEW" and say why.
- Do not invent titles that are not in the data.
Format: a table with columns: row | raw title | standard title | changed? (yes/no) | note. Then a short list of the standard titles you used.
Data (row, job_title):
[paste]

Prompt 2, locations. Use when cities come in several spellings.

You are helping me clean a location column from an applicant tracking system export.
Task: map every raw location below to one standard form: "City, Country" or "Remote, Country".
Rules:
- Default country: [your country]. Add it to any value that names a city in [your country].
- Merge spelling variants, abbreviations, hyphens, case and extra spaces of the same place.
- Keep a neighborhood or district under its city only if you are sure it belongs to that city.
- If a value names no place at all (for example only "remote"), or could be two places, do not guess. Put "NEEDS REVIEW" and say why.
- Do not invent places that are not in the data.
Format: a table with columns: row | raw location | standard location | changed? (yes/no) | note.
Data (row, location):
[paste]

The line we almost shipped. Our first draft said "assume Israel" and, two lines later, "flag any value missing a country". Claude pointed out the clash: taken literally, 18 of 20 rows would be flagged. Gemini silently picked one reading. The version above has one rule per case; both ran it cleanly.

Prompt 3, dates. Use when the file was merged from several systems.

You are helping me clean an application date column from an applicant tracking system export. The file was merged from more than one old system, so the date formats are mixed.
Task: convert every raw date below to ISO format (YYYY-MM-DD).
Rules:
- A 5-digit number is an Excel serial date. Convert it and show the date.
- When day and month could be swapped (both numbers are 12 or less) and nothing in the value itself tells you which is which, do not guess. Put "AMBIGUOUS" and give both possible dates.
- Do not assume one convention for the whole file. Look at each value on its own.
- Do not change any value you cannot read. Put "NEEDS REVIEW".
Format: a table with columns: row | raw date | ISO date | note. Then one line: how many dates you converted, how many are ambiguous, how many need review.
Data (row, applied_date):
[paste]

Both tools converted the 14 readable dates, Excel serials included, and flagged the same 6. A script checked every "could be X (DD/MM)" note. Claude's were all right. Gemini's notes for "04/03/2025" and "03/04/2025" had the readings swapped, so picking "DD/MM" from its note gives the wrong date. Caveat: a top Claude model against a light Gemini one, not the whole brands.

Ambiguous dates with correctly labeled readings
Claude OpusClaude Opus, run 1: labels rightClaude Opus, run 2: labels rightClaude Opus, run 3: labels rightClaude Opus, run 4: labels rightClaude Opus, run 5: labels rightClaude Opus, run 6: labels right6 of 6Gemini 3.8 FlashGemini 3.8 Flash, run 1: labels rightGemini 3.8 Flash, run 2: labels rightGemini 3.8 Flash, run 3: labels rightGemini 3.8 Flash, run 4: labels rightGemini 3.8 Flash, run 5: labels swappedGemini 3.8 Flash, run 6: labels swapped4 of 6labels rightlabels swapped

Source: our test, 20 made-up rows, checked by script

Show the data
labels rightTotal
Claude Opus66
Gemini 3.8 Flash46

Prompt 4, statuses. Use when the status column hides a second fact. On 20 made-up rows, both caught all 3 status-reason conflicts. Gemini quietly filed "Reject - withdrew" as Withdrew; Claude flagged it.

Map each raw status below to one of these: [your list, for example Applied, Screening, Interview, Offer, Hired, Rejected by us, Withdrew].
If the raw status and the reason text disagree (for example status "Rejected" but reason "candidate withdrew"), put "NEEDS REVIEW" and write the row number in a list called CONFLICTS.
If a status fits none of the list, put "NEEDS REVIEW". Never leave a row out.
Format: row | raw status | standard status | note.
[paste row, status, reason]

Prompt 5, the count check. Use after every pass. We gave both a result with one row lost and one doubled, still totaling 20. Both named the two rows. Still count flags with COUNTIF: Claude's prompt 4 summary said 9 and listed 8.

Here are the column before and after cleaning. List: how many rows went in, how many came out, every row number that is missing or duplicated, and every row marked NEEDS REVIEW or AMBIGUOUS. Do not fix anything. Only report.
BEFORE: [paste]
AFTER: [paste]

When a clean sheet still lies

A flag is a task, not a failure: the 6 ambiguous dates need someone who knows which system wrote them. Never let a cleaned title decide anything about a person: a wrongly merged "Analyst" can silently drop a candidate out of a search.

Next step: once the columns are clean, try the questions in our test of a messy ATS export, or turn them into a weekly pipeline report.

This article is general information, not legal advice. Laws differ by country and change often, so consult your lawyer before you rely on it for your situation.

Keep reading