Clean phone numbers and postal codes using Excel formulas
Transform irregular contact details into uniform formats for clean CRM imports. Use this whenever raw exports mix dashes, dots, spaces, or leading zeroes.
Text prompt for ChatGPT and Claude
You get: Formula breakdown, how it works and what to check
Prompt
Act as an Excel formula specialist. Write clean, reliable Excel formulas to standardize messy phone numbers and postal codes based on the sample data provided below.
- Provide formulas that work in standard Excel (such as TEXT, SUBSTITUTE, TRIM, or modern REGEX/LAMBDA where appropriate).
- Handle common edge cases like missing leading zeroes, variable lengths, and unwanted punctuation (dots, spaces, dashes, parentheses).
- Clearly specify which column or cell reference your formula assumes.
- Provide a fallback formula for users on older Excel versions (without modern array functions).
Output format:
- Formula breakdown: Show each target format and its exact formula.
- How it works: A 2-sentence explanation of the logic.
- What to check: 2-3 validation checks before running a bulk import.
My raw data samples are below:Example output
Paste your raw sample phone numbers and postal codes at the bottom in ChatGPT, Claude, or Gemini. As a follow-up, ask how to wrap the formulas with IFERROR to catch blank cells cleanly.
Reuse it: Use in a workflowTurn into a skillAdapt in the builder
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
More like this
Strip hidden characters and non-printing breaks in Excel
Remove hard carriage returns, non-breaking spaces, and invisible ASCII artifacts that break lookups. Use this after copying data from web forms or PDFs.
Deduplicate spreadsheet rows keeping latest entry
Finds duplicate records in your data and generates clean formulas or step-by-step instructions to keep only the newest record.
Write Google Sheets REGEX Formulas to Extract and Clean Text
Get ready-to-paste REGEXEXTRACT, REGEXREPLACE, or REGEXMATCH formulas for Google Sheets with a token-by-token breakdown.
Parse Unstructured Text into Clean Excel Columns
This prompt generates specific Excel formulas to split messy text strings into organized columns while handling edge cases like missing delimiters.
Create a sorted unique dropdown list from raw data
Extract sorted, deduplicated values from raw operational data to build a clean dynamic Excel dropdown menu.
Fix divide-by-zero errors in Excel variance formulas
Eliminate #DIV/0! errors in budget variance calculations with clean, professional handling for zero or missing values.
- Split full names with titles and suffixes into distinct columns
- Categorize bank statements with keyword lookup rules
- Build a Fuzzy Matching Workflow for Data Reconciliation
- Create Dynamic Excel Dashboard Arrays with Filter Unique and Sort
- Combine Monthly Excel or CSV Files with Power Query
- Find Outliers and Bad Data in a Spreadsheet Using IQR