Cleaning data with AI
Open the AI chat or command bar and describe what needs cleaning:- “Remove all duplicate rows”
- “Fix inconsistent date formats in column B”
- “Trim whitespace from all text columns”
- “Standardize country names (US, USA, United States should all be ‘United States’)”
- “Fill missing values in the revenue column with the average of adjacent rows”
- “Remove rows where the email column is empty”
Common cleaning tasks
| Task | Example prompt |
|---|---|
| Remove duplicates | ”Remove duplicate rows based on email address” |
| Fix formatting | ”Convert all dates to YYYY-MM-DD format” |
| Standardize text | ”Make all company names title case” |
| Fill missing data | ”Fill blanks in column C with ‘Unknown‘“ |
| Remove outliers | ”Remove rows where salary is more than 3 standard deviations from the mean” |
| Split columns | ”Split the address column into street, city, state, and zip” |
| Merge columns | ”Combine first name and last name into a full name column” |
| Extract data | ”Extract the domain from email addresses into a new column” |
| Validate data | ”Flag rows where the phone number format is invalid” |
| Convert units | ”Convert all weights from pounds to kilograms” |
Using the command bar
For quick cleaning actions, use the command bar (Cmd+K / Ctrl+K):
- Select the cells or columns you want to clean
- Press
Cmd+K/Ctrl+K - Type your cleaning instruction
- The AI applies the changes directly