EN
My account

Your privacy, your call. No advertising cookies. May we count your visit in aggregate (Cloudflare, no cookies) and remember where you came from? If you reject, we won’t measure your visit. · Cookies · Privacy

Privacy settings

Choose what we measure and what we keep in this browser. We never sell or share your data.

Essential

Remember your theme, language, saved items and this choice. Without them the site cannot work the way you ask.

Always on

Keeps the source of your first and latest visit for 90 days (utm parameters and referring site). It only leaves your browser if you subscribe to the newsletter.

Cloudflare Web Analytics counts visits in aggregate: page, referring site, country, browser and load times. No cookies, no identifiers and no profiling; nothing is stored in your browser. It only loads if you accept it. If you reject it or switch it off, it does not load (or stops loading from the next page) and we do not count your Telegram clicks either.

Cookies · Privacy

Work · Professional prompt

Clean and tidy data in Excel

Professional structure: role, context, objective, details, steps, format, criteria and self-check. Designed for better results, not guaranteed ones: always review the answer.

Never use real personal data. If you need to, run it through the data cleaner.

Fill in the blanks
## Role
Act as a data quality specialist.

## Context
I have a messy table with duplicates, dates in several formats and badly typed text.

## Objective
Design a repeatable cleaning plan and the formulas or steps to apply it.

## Details (fill in what is in square brackets)
- [sample of 10 anonymised rows]
- [program: Excel, Sheets or Power Query]
- [what the data will be used for]

## Step-by-step instructions
1. Diagnose: duplicates, mixed formats, blanks and odd values.
2. Propose the cleaning order.
3. Give the formula, function or Power Query step for each problem.
4. Explain how to check that no valid data was deleted.

## Output format
Diagnosis table (problem, example, fix), numbered steps and a final checklist.

## Quality criteria
- No information is removed without warning.
- The steps can be repeated next month.
- A copy of the original data is kept.

## Self-check
Before answering, check every quality criterion. If information is missing, ask me instead of making it up, and at the end state what you have assumed.

The link opens the empty template: what you type is not included.

Objective

Design a repeatable cleaning plan and the formulas or steps to apply it.

When to use it

This prompt is most useful when you have inherited a messy 'legacy' spreadsheet full of inconsistent entries, such as varying date formats or haphazard casing. It is perfect for preparing data before you build a pivot table or perform a quarterly analysis to ensure better results. However, it is not suitable for unstructured data, like long-form paragraphs or handwritten notes turned into text. If the data is missing more than half its values, a manual review is usually better than an automated cleaning plan.

Worked example: input (fictional data)

[sample of 10 anonymised rows] ID, Customer, Date, Total, Area A01, John Lane, 12/01/24, 45.00, Bristol A02, SARAH BENSON, 2024-01-15, £60, bristol A03, Mike Thorne, 02/03/24, 22.5, Bath A01, John Lane, 12/01/24, 45.00, Bristol A05, Elena V., 22 Feb 24, £100.00, LONDON A06, GARY OLDFIELD, 05/04/24, 15.75, London A07, Rachel Gower, 10-05-24, £30, Bath A08, Steve Jenkins, 2024.06.01, 80.00, bath A09, Nina Silver, 12/07/2024, £55, Bristol A10, Paul North, 15/08/24, 40, London [program: Excel] [what the data will be used for] I need to create a clean summary of total spend per area for our regional manager's monthly review.

Worked example: full response

Diagnosis Table Problem: Duplicate records. Example: John Lane (A01) appears twice. Fix: Use the Remove Duplicates feature. Problem: Inconsistent text casing. Example: SARAH BENSON vs Rachel Gower. Fix: Apply the PROPER function. Problem: Mixed date formats. Example: 12/01/24 vs 2024.06.01. Fix: Use Text to Columns to standardise. Problem: Inconsistent currency symbols. Example: £60 vs 45.00. Fix: Apply standard Currency formatting. Cleaning Order 1. Remove duplicate rows to ensure figures are not artificially inflated. 2. Standardise the Area and Customer columns to fix casing issues. 3. Convert all dates into a uniform UK format (DD/MM/YYYY). 4. Clean the Total column to ensure all values are recognised as numbers. Steps and Formulas - To remove duplicates: Highlight your table, go to the Data tab, and click Remove Duplicates. Ensure the ID column is selected. - To fix names and areas: In a spare column, use =PROPER(TRIM(B2)). This fixes the casing and removes any accidental spaces. Copy the results and use Paste Values over the originals. - To fix areas specifically: If you still see Bath and bath, use Find and Replace (Ctrl+H) to change all instances to Bath. - To fix dates: Select the Date column, go to Data > Text to Columns. Click Next twice, then select Date (DMY) and click Finish. - To fix spend: Select the Total column, press Ctrl+1, choose Currency, select £ English (United Kingdom), and set to 2 decimal places. Final Checklist - Compare the new row count to the original to ensure only actual duplicates were removed. - Filter the Area column and check for any remaining variations in spelling. - Use =ISNUMBER() on a few cells in the Total column to ensure Excel recognises them as values. - Check that the earliest and latest dates in your cleaned list make sense for this reporting period.

Variants

Quick Cleanse

Focus only on the three most critical errors that prevent a pivot table from working. Provide a single 'mega-formula' if possible to fix text and spacing in one go, skipping the detailed diagnosis table to save time for a small dataset.

Step-by-Step Beginner Guide

Assume no prior knowledge of Excel functions. Instead of just giving formulas, explain exactly where to click in the Ribbon menu (e.g., Home tab, Editing group). Use very simple language and avoid technical jargon like 'strings' or 'delimiters'.

Power Query Automation

Rewrite the cleaning plan specifically for Power Query. Instead of standard formulas, provide the M-code logic or the specific button sequences in the Query Editor (like 'Capitalize Each Word' or 'Detect Data Type') so the process can be refreshed easily.

Common mistakes

Related guide

General and assistant-specific tips

Tips by assistant

  • ChatGPT: you can attach the file (Excel, CSV or PDF) and ask it to analyse it; ask it to show the calculations it made.
  • Gemini: if your plan includes it, you can use it inside Google Docs, Sheets or Gmail without leaving the document.

Getting the most out of it

  • Paste the prompt as is and only replace what is in [brackets].
  • If the answer does not fit, do not start over: ask for “shorter”, “more formal” or “as a table”.
  • Always review the result before using it: AI can get facts, dates or names wrong.

Before you paste it: quick checklist

  • Remove client names, amounts and internal data before pasting.
  • Say who the text is for and which tone you want.
  • Ask for a specific length: “120 words max” or “three bullet points”.
  • Read the result aloud and fix anything you wouldn’t say yourself.

How to adapt it to your assistant

The template works the same in ChatGPT, Gemini, Copilot or Claude because it only uses plain language. If your assistant supports fixed instructions (custom instructions, Gems or projects), you can store your preferred tone and format there and paste only the variable part. On a free plan, split long requests into two or three shorter messages.

See all Work prompts

More professional prompts

← All prompts

Found this prompt useful? A new one every Tuesday

Every Tuesday, 5 minutes: AI news with sources, a tool with its prompt and a guide. Free, with one-click unsubscribe. What is inside and a sample issue