# AI data cleaning for exports, lists and spreadsheets

https://getmegabrain.com/tools/ai-data-cleaning

> Exports from CRMs, forms and old systems come with mixed date formats, duplicates and typos. MegaBrain cleans them into a new file, applies the rules you give it and writes a log of every change, so you can trust the result before you import it anywhere.

How it gets in: Files on your Mac.

## Prompts to try

### Deduplicate a contact list

> Clean Sales/contacts-export.csv: merge duplicate contacts by email, then by name and company, keep the most recent phone and title, and standardize country names. Save the clean list as Sales/contacts-clean.xlsx with a Log sheet of every merge.

### Fix dates and amounts

> In Finance/transactions-raw.csv, convert every date to YYYY-MM-DD, amounts to numbers with two decimals and the currency into its own column. Save it as Finance/transactions-clean.xlsx and list the rows you could not parse.

### Standardize categories

> Map the free-text categories in Ops/tickets-export.csv to the list in Ops/categories.xlsx. Put the mapped category in a new column, flag the rows that fit none, and save it as Ops/tickets-categorized.xlsx.

### Prepare an import file

> Turn Sales/leads-from-event.xlsx into an import file that matches the columns in Sales/crm-import-template.csv: split full names, lowercase emails, drop rows without an email and save it as Sales/leads-import.csv.

## What it does

- Rules you can read: It applies the rules you state and lists any it had to assume.
- A log of every change: Merges, fixes and dropped rows go on a separate sheet you can review.
- Original untouched: The prompts write the clean data to a new file and leave the export as it was.
- Ready to import: It can shape the result to the columns your CRM or system expects.

## How it works

1. Add the export: A CSV or Excel file in a folder MegaBrain can use.
2. State the rules: What counts as a duplicate, the formats you want and what to drop.
3. Review the log: Check the changes, then import the clean file.

## AI employees who do this

- [AI data entry clerk](https://getmegabrain.com/ai-employees/data-entry-clerk)
- [AI CRM assistant](https://getmegabrain.com/ai-employees/crm-assistant)
- [AI operations coordinator](https://getmegabrain.com/ai-employees/operations-coordinator)

## Works in

- [Salesforce](https://getmegabrain.com/automate/salesforce)
- [HubSpot](https://getmegabrain.com/automate/hubspot)
- [Airtable](https://getmegabrain.com/automate/airtable)

## Questions

### Does it change my original file?

No. It writes the cleaned data to a new file and keeps a log of every change next to it.

### Can it deduplicate contacts?

Yes. Tell it how to match records (email first, then name and company, for example) and which values to keep when two records disagree.

### How large a file can it clean?

Everyday exports work well. For very large files, split them first or ask it to clean one part at a time.

### Can it import the clean data for me?

It prepares the import file. With computer use it can also run the import screen of your system in your browser and stop before the final confirm, so you check the preview.

All tools: https://getmegabrain.com/tools · Download for Mac: https://getmegabrain.com/download · Plans: https://getmegabrain.com/pricing · Computer use: https://getmegabrain.com/computer-use
