Data Cleaning Formula

General Productivitychatgpt-prompts-for-excelcolumnmessy_formatexample_1

Showing before/after examples lets the AI infer the pattern precisely. Asking for Power Query alternatives when appropriate gives you the best tool for the job, not just formulas.

Prompt
I have messy data in Excel that needs cleaning:

**Column:** {{column}} (e.g., "Column B, rows 2-1000")
**Current format (messy):** {{messy_format}}
Example messy values:
- "{{example_1}}"
- "{{example_2}}"
- "{{example_3}}"

**Desired clean format:** {{clean_format}}
Expected output for the examples above:
- "{{clean_1}}"
- "{{clean_2}}"
- "{{clean_3}}"

Provide:
1. A formula I can put in an adjacent column to clean each row
2. If the formula is complex, break it into helper columns
3. If Power Query would be better for this scale, show that approach too

My Excel version: {{version}} (e.g., "Excel 365", "Excel 2019")

Variables to customize

{{column}}{{messy_format}}{{example_1}}{{example_2}}{{example_3}}{{clean_format}}{{clean_1}}{{clean_2}}{{clean_3}}{{version}}

Why this prompt works

Showing before/after examples lets the AI infer the pattern precisely. Asking for Power Query alternatives when appropriate gives you the best tool for the job, not just formulas.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.