Skip to guide

CSV preparation

AI CSV Cleaner: Set Rules Before Changing Your Data

Prepare CSV cleanup rules for delimiters, identifiers, dates, whitespace and duplicate records, with a reviewable change log.

A CSV is a text table, so a cleanup can alter the meaning of a field before you notice. Start with the original file and define the intended data types. The goal is a consistent export that still represents the same records.

Prompts on this page are free to copy. Model access, allowances and collaboration features depend on your plan. Check access and pricing

Worked example

Preserve identifiers while normalizing dates

Illustrative example written for this guide. Model outputs vary.

Starting point

customer_id: 00124; signup_date: 03/04/2026; city: “ Bristol ”

Desired result

customer_id stays “00124”; city becomes “Bristol”; signup_date is flagged until the day/month convention is confirmed.

Leading zeros can be meaningful. An ambiguous date should be reviewed, not silently guessed.

Prompt to adapt

Inspect this CSV before editing. Treat customer_id as text and preserve leading zeros. Trim outer whitespace in city. Identify the delimiter and report ambiguous dates. Propose duplicate rules and a change summary; do not delete rows merely because names match.

Inspect the file format first

Check the encoding, delimiter, header row and quoting. A comma inside a quoted address is part of the value, not necessarily a new column. Confirm that every row has the intended number of fields.

Set column types explicitly. Postal codes, telephone numbers and customer IDs are often text even when they contain digits. Keep a copy of the original export for comparison.

Define duplicates using the business key

Two rows with the same customer name may represent different people or transactions. Choose the fields that establish identity, and decide how to handle conflicting values before removing anything.

Ask for exact matches and possible matches in separate review groups. Preserve the retained record’s source and explain why another row would be removed.

Reconcile the cleaned export

Compare row counts before and after, count missing values by column and inspect a sample of changed cells. If rows were merged or removed, every difference should have an explanation.

Open the exported CSV in the system that will consume it. Verify identifiers, non-English characters and dates there; a correct preview alone does not prove a successful import.

Start with a CSV inspection

Bring a representative file into Excel Studio and ask for a cleanup proposal before accepting changes. Review ambiguous values and keep the original export.

Explore Excel Studio