全部文章
Analytics

用 Claude 和 Gemini 清洗 Excel 里杂乱的 HR 数据:5 个提示词

一次只清洗 ATS 导出表的一列,让 AI 把读不懂的内容标出来而不是瞎猜,并且核对原始日期,而不是 AI 给的标注。

  • Saves time
  • Consistent decisions

2026年10月30日 · 5 分钟阅读

提示词为英文:在各类AI工具中英文提示词效果最佳。

我们虚构的导出表里,20 个日期中有 6 个可以有两种读法。"04/03/2025" 在特拉维夫是 3 月 4 日,在芝加哥却是 4 月 3 日。工具要是悄悄选了其中一种,你的招聘周期(time-to-hire)报表里,候选人的数据就会被带偏。

简短回答: 别对 AI 说"帮我清洗这个表格"。只粘贴你要处理的那一列,加上行号,再配一个简短的提示词,说明哪些可以合并、哪些必须分开,遇到拿不准的就写 NEEDS REVIEW,不要猜。在我们的测试中,Claude Opus 和 Gemini 3.8 Flash 把所有职位名称和地点都归并正确,6 个有歧义的日期也全部标了出来,但 Gemini 给其中 2 个日期标错了"日/月"的读法。要看原始值,别信标注。

哪种问题用哪个提示词

导出表里的情况 使用
"Sr. SWE"、"Senior Software Engineer"、"Snr Software Eng." 提示词 1:职位名称
"TLV"、"Tel-Aviv"、"Tel Aviv-Yafo"、"remote" 提示词 2:地点
同一列里有 2025-03-04、04/03/2025、45720、"4 Mar 2025" 提示词 3:日期
"Rejected"、"Reject - withdrew"、"No show"、空白 提示词 4:状态
刚做完提示词 1-4 提示词 5:数量核对

如果工具提示你的规则互相冲突,就改提示词重新运行。如果它什么都没说,也不代表规则没问题(见提示词 2 下面的方框)。

粘贴之前,先删掉这次修正用不到的所有列:姓名、邮箱、备注。职位名称这一列没有理由连同候选人的姓名一起发出去。

五个提示词

提示词 1,职位名称。 适用于同一个岗位有五种写法的情况。两个工具都把 "Software Engineer II" 和 Senior 分开了,也都不去猜 "PM" 指什么。对高级岗位的叫法两者不一致,所以如果你有一份标准职位名称清单,请自己加进去。

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]

提示词 2,地点。 适用于城市有多种写法的情况。

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]

差点发出去的那一行。 我们的初稿里写的是"默认以色列",两行之后又写"凡是缺少国家的值都要标出"。Claude 指出了这个矛盾:按字面执行,20 行里有 18 行都会被标出。Gemini 则悄悄选了其中一种理解。上面这个版本每种情况只有一条规则,两个工具都顺利跑完了。

提示词 3,日期。 适用于文件由多个系统合并而来的情况。

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]

两个工具都转换了 14 个可以读懂的日期(包括 Excel 序列号),标出的 6 个也完全相同。我们用脚本检查了每一条 "could be X (DD/MM)" 备注。Claude 的全部正确。Gemini 对 "04/03/2025" 和 "03/04/2025" 的备注把两种读法写反了,所以按它的备注选 "DD/MM",得到的日期是错的。说明:这是顶级 Claude 模型对比轻量级 Gemini 模型,不代表两个品牌的整体水平。

有歧义的日期:两种读法的标注是否正确
Claude OpusClaude Opus, run 1: 标注正确Claude Opus, run 2: 标注正确Claude Opus, run 3: 标注正确Claude Opus, run 4: 标注正确Claude Opus, run 5: 标注正确Claude Opus, run 6: 标注正确6 of 6Gemini 3.8 FlashGemini 3.8 Flash, run 1: 标注正确Gemini 3.8 Flash, run 2: 标注正确Gemini 3.8 Flash, run 3: 标注正确Gemini 3.8 Flash, run 4: 标注正确Gemini 3.8 Flash, run 5: 标注颠倒Gemini 3.8 Flash, run 6: 标注颠倒4 of 6标注正确标注颠倒

Source: 我们的测试,20 行虚构数据,用脚本核对

Show the data
标注正确Total
Claude Opus66
Gemini 3.8 Flash46

提示词 4,状态。 适用于状态列里还藏着另一层信息的情况。在 20 行虚构数据上,两个工具都发现了全部 3 处状态与原因互相矛盾的地方。Gemini 悄悄把 "Reject - withdrew" 归成了 Withdrew;Claude 则把它标了出来。

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]

提示词 5,数量核对。 每做完一轮都要用。我们给两个工具一份结果,其中丢了一行、重复了一行,总数仍是 20。两者都指出了这两行。不过标记的数量还是要用 COUNTIF 自己数:Claude 在提示词 4 的汇总里写的是 9,实际只列出了 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]

表格干净了,结果仍可能出错

标记是待办事项,不是失败:那 6 个有歧义的日期,需要知道它们由哪个系统写入的人来确认。也不要让清洗后的职位名称去决定任何关于某个人的事:一个被错误合并的 "Analyst",可能悄悄让某位候选人从搜索结果里消失。

下一步: 各列清洗干净后,可以用这些数据试试我们对杂乱 ATS 导出表的测试里的问题,或者把它们做成每周招聘漏斗报告。

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.

继续阅读