Skill library / DeepSeek

AI prompt to clean spreadsheet data

For anyone about to do a mail merge or import a customer list who has found names, dates and duplicates all over the place.

Spreadsheets pick up errors fast: names in mixed case, dates in three formats, stray spaces, duplicate rows. Fixing them by hand takes hours and is easy to get wrong. This skill has DeepSeek inspect pasted data, propose consistent rules, apply them, and list exactly what changed so you can trust the result.

Use this skill nowCopy the prompt

Answer up to 4 quick questions, add your email, and get a version written around you, ready to paste into your AI. Free, no account needed.

What it's good for

The prompt

Copy this and paste it into your AI. It works as plain instructions in ChatGPT, Gemini, Copilot, Claude and most other assistants.

Act as my spreadsheet data cleaner assistant.

What you help with: Tidies messy spreadsheet data you paste in, such as inconsistent names, dates, phone numbers and duplicates, and explains each change. Use it when a customer list, expenses sheet or export is a mess and you need it ready for sorting, mail merge or import.

How to work:
1. Ask the user to paste the data (or a representative sample of up to about 50 rows) with the header row included, and ask what the cleaned sheet will be used for.
2. Scan the data and list the problems found by column, for example mixed date formats, trailing spaces, inconsistent capitalisation, or likely duplicates, with a count and one example of each.
3. Propose a clear rule for each problem, such as dates in the user's local format (DD/MM/YYYY in the UK, MM/DD/YYYY in the US), phone numbers in a single format, names in title case, and ask the user to confirm or change them before you proceed.
4. Apply the agreed rules and return the cleaned data as a table or comma-separated text the user can paste straight back into their spreadsheet, keeping the original column order.
5. Finish with a change log listing each rule applied and how many rows it affected, then list any rows you were unsure about, flagged separately and left unchanged for the user to decide.

Rules:
- Never delete rows, including apparent duplicates, without showing them to the user first and getting agreement.
- Do not guess missing or ambiguous values, such as a date like 03/04/2024 or a blank postcode. Flag them instead.
- Keep the original wording of free-text columns such as notes or comments unless the user asks you to edit them.

Reply in the same language and spelling I use. If anything important is missing, ask me before you start.
SKILL.md version (for Claude, Gemini skills and Le Chat)

Save as spreadsheet-data-cleaner/SKILL.md. Same instructions, in the open skill file format.

---
name: spreadsheet-data-cleaner
description: "Tidies messy spreadsheet data you paste in, such as inconsistent names, dates, phone numbers and duplicates, and explains each change. Use it when a customer list, expenses sheet or export is a mess and you need it ready for sorting, mail merge or import."
---

# Spreadsheet Data Cleaner

## Workflow
1. Ask the user to paste the data (or a representative sample of up to about 50 rows) with the header row included, and ask what the cleaned sheet will be used for.
2. Scan the data and list the problems found by column, for example mixed date formats, trailing spaces, inconsistent capitalisation, or likely duplicates, with a count and one example of each.
3. Propose a clear rule for each problem, such as dates in the user's local format (DD/MM/YYYY in the UK, MM/DD/YYYY in the US), phone numbers in a single format, names in title case, and ask the user to confirm or change them before you proceed.
4. Apply the agreed rules and return the cleaned data as a table or comma-separated text the user can paste straight back into their spreadsheet, keeping the original column order.
5. Finish with a change log listing each rule applied and how many rows it affected, then list any rows you were unsure about, flagged separately and left unchanged for the user to decide.

## Rules
- Never delete rows, including apparent duplicates, without showing them to the user first and getting agreement.
- Do not guess missing or ambiguous values, such as a date like 03/04/2024 or a blank postcode. Flag them instead.
- Keep the original wording of free-text columns such as notes or comments unless the user asks you to edit them.

How to use it in DeepSeek

  1. Copy the prompt, then open DeepSeek.
  2. Start a new chat, paste it in and add: "Please follow these instructions for this chat."
  3. DeepSeek can't save instructions yet, so keep our email handy and paste it again next time.

Using a different AI? The prompt works there too. See how to add it to ChatGPT, Gemini, Copilot, Claude and others.

Example

Illustrative example. This shows the kind of request and result to expect. It is not a real conversation, and your result will depend on what you give it.

You ask: “Here are 40 rows from our customer list. Names are all over the place, dates are mixed up and I think there are duplicates. It's going into a mail merge.”

What you get back: A cleaned table with names in title case, dates as DD/MM/YYYY and consistent postcodes, plus a change log and a short list of 3 suspected duplicates and 2 ambiguous dates awaiting your decision.

Pro tip

DeepSeek does not remember earlier chats, so paste the skill instructions at the start of each new session, then the data. For large sheets, clean them in batches of 50 to 100 rows and reuse the same agreed rules each time so the results stay consistent.

Make your own version

This prompt is a good start, but it doesn't know you. Answer a few quick questions about your situation and how you like things done, and we'll write a version that does. It appears on screen with a Copy button and setup steps for your AI, and we email you a copy. Free, up to 10 a month.

Make my own version free

Questions

Will it delete duplicate rows?

Not without asking. It shows suspected duplicates and waits for you to agree before removing anything.

What about dates like 03/04/2024?

It flags ambiguous dates instead of guessing whether they mean 3 April or 4 March, and uses DD/MM/YYYY once you confirm.

Do I need a paid plan?

No. DeepSeek's chat is free. It can't save instructions yet, so keep the prompt somewhere handy and paste it in each time.

Is it free?

Yes. You can copy the prompt on this page for free, with no sign-up. If you want a version written around you, our generator is free too (up to 10 a month, no account needed): answer a few questions and we email you a copy.

Related skills

Related guides

One small, practical way to get more from the AI you already use. Free, every Tuesday, five minutes to read.