Convert mixed date orders and CSV decimal separators

Provides quick formulas and native text conversions to standardize mismatched US and European date formats and decimal commas.

Text prompt for ChatGPT and Claude

You get: Quick Diagnostic of the pasted data, cleaning Formulas and native Import & Regional Setting Fixes

Prompt

Prompt
Act as a spreadsheet data architect. Review the pasted snippet of exported CSV or spreadsheet data that contains conflicting date orders (DD/MM/YYYY vs MM/DD/YYYY) or European decimal separators.

Rules:
- Provide clean formulas to parse ambiguous dates without corrupting year values.
- Provide a formula to convert comma decimals into standard period decimals.
- List the quickest native Excel and Google Sheets settings tweaks (such as regional locale adjustments).
- Include a check to flag rows where the day and month cannot be determined with certainty.

Output format:
1. Quick Diagnostic of the pasted data
2. Cleaning Formulas (Dates and Numbers)
3. Native Import & Regional Setting Fixes
4. Ambiguity Audit Formula

Here is my raw data snippet:

Example output

Cleaning mixed dates and decimal commasFour stages from diagnosis to ambiguity check
  1. Quick diagnosticSpot day-first dates and European decimals
  2. Cleaning formulasVALUE/SUBSTITUTE for amounts, DATE for dates
  3. Native import and regional fixesSet separators in Excel, locale in Google Sheets
  4. Ambiguity audit formulaFlag rows where day is 12 or less

Example for: export with mixed dates like 13/02/2024, 05/12/2024 and European amounts like 1.250,50

  1. Quick Diagnostic
  • Dates contain both day-first values (e.g., 13/02/2024) and ambiguous values (05/12/2024).
  • Numeric fields use periods as thousand separators and commas as decimals.
  1. Cleaning Formulas
  • Convert European decimal text in cell B2 to standard number:
    =VALUE(SUBSTITUTE(SUBSTITUTE(B2, ".", ""), ",", "."))
  • Convert Day-First DD/MM/YYYY text in cell A2 to universal serial date:
    =DATE(RIGHT(A2, 4), MID(A2, 4, 2), LEFT(A2, 2))
  1. Native Import & Regional Setting Fixes
  • In Excel: File > Options > Advanced > uncheck 'Use system separators', set Decimal separator to , and Thousands separator to .. Refresh data, then revert.
  • In Google Sheets: File > Settings > change Locale to 'United Kingdom' or 'Germany' prior to pasting raw data.
  1. Ambiguity Audit Formula
    To flag rows where day is 12 or less (where DD/MM and MM/DD cannot be determined without business context):
    =IF(VALUE(LEFT(A2, 2)) <= 12, "Review: Day <= 12", "Confirmed DD/MM")
Written by AI from this prompt. Your results will vary.

Paste your corrupted or mismatched rows at the end of the prompt in Claude, Gemini, or ChatGPT. If you are importing directly from a raw CSV file, ask the model for the best Text Import Wizard delimiter sequence.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

Excel & Spreadsheets

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.

Excel & Spreadsheets

Convert text-stored dates into real serial numbers for calculations

Convert stubborn text-formatted dates into valid spreadsheet date serial numbers so subtraction and sorting work properly.

Excel & Spreadsheets

Handle cost and revenue variance signs in Excel

Standardize variance calculations across mixed revenue and expense lines so favorable outcomes consistently display correctly.

Excel & Spreadsheets

Convert dragged Google Sheets formulas to ARRAYFORMULA

Convert individual dragged-down formulas into single-cell array formulas that automatically process new rows and speed up your sheet.

Excel & Spreadsheets

Translate plain English requests into Google Sheets QUERY

Transforms plain business questions into working Google Sheets QUERY formulas with correct syntax, quotation marks, and date formats.

Excel & SpreadsheetsGemini

Build an Excel Waterfall Chart Table for Revenue or EBITDA Bridges

Get a ready-to-paste Excel table layout with exact variance formulas and helper columns so your native waterfall chart renders cleanly.