Data cleanup
Trim whitespace, change case, add or remove text, convert values, fill blanks, split delimited cells, remove leading zeros, change sign, and round numbers.
Data cleanup applies controlled transformations to a selected range, current sheet, workbook scope, or the last advanced selection. It is designed for practical normalization work that normally takes dozens of repetitive spreadsheet steps.

Choose scope deliberately
The safest default is usually Selected range. Current-sheet and workbook scopes are powerful but broader. The “Last advanced selection” scope can reuse the exact cells/rows isolated by the advanced selection tool; use it when cleanup should apply only to a filtered subset.
Cleanup action matrix
| Action label | Exact options | Important behavior |
|---|---|---|
| Trim whitespace | No additional options. | Trims leading/trailing whitespace and collapses repeated internal whitespace, including common non-breaking Unicode spaces. |
| Change case | UPPERCASE, lowercase, Proper/Title Case, Sentence case. | Applies to text values; choose the exact case mode before preview. |
| Add prefix/suffix | Prefix and suffix text fields. | Test on a sample range; repeated application can duplicate affixes. |
| Remove characters | By character type (whitespace, letters, numbers, symbols/punctuation), by position (count from start/end), or by regex pattern. | Invalid regex and unexpected skip counts are surfaced in preview. |
| Extract text | First number, email address, or regex match/capture. | Regex capture is precise but unforgiving; validate examples before broad application. |
| Convert text to numbers | No additional options. | Conversion handles ordinary numeric text, grouping, and currency/percent forms where recognized; leading-zero identifiers are not converted. |
| Convert text to dates | ISO + unambiguous dates only, slash/dot dates as month/day/year, or slash/dot dates as day/month/year. | Ambiguous dates are skipped rather than guessed unless you explicitly choose MDY or DMY interpretation. |
| Fill blank cells | Fill from above, fill from below, or a fixed value. | Direction/source semantics matter; preview before applying. |
| Split delimited text | Delimiter (use \t for tab), split into columns or rows, and an explicit checkbox to allow overwrite of previewed nonblank adjacent cells. | Can overwrite adjacent output cells only after explicit confirmation; otherwise conflicts are skipped/reported. |
| Remove leading zeros | No additional options. | Dangerous for IDs where leading zeros are meaningful. |
| Change numeric sign | No additional options. | Applies only to numeric cells in the intended scope. |
| Round numbers | Decimal places. | Rounding modifies stored values, not just display formatting. |
Formula cells, merged cells, and rich text
By default, formula cells are not simply overwritten as text. Enable Replace formula cells with cached results before transforming only when converting formula output into static values is intended. Merged and rich-text cells are skipped. Type conversion is conservative; ambiguous values appear in the preview skip summary rather than being guessed.
Recommended procedure
- Make a backup copy for high-value or irreversible cleanup work.
- Use advanced selection first if only a subset should be transformed.
- Open Tools → Data cleanup.
- Select the narrowest correct scope.
- Configure one cleanup action at a time.
- Preview and inspect the affected-cell count plus examples.
- Apply, spot-check the workbook, then save deliberately.
Edge cases and judgment calls
- Whitespace cleanup can alter values that look identical but are not byte-identical.
- Date conversion is risky with ambiguous formats such as 01/02/2026.
- Rounding and sign changes affect stored values and downstream formulas.
- Split operations need enough empty adjacent space in the output area.
- Repeated cleanup is not automatically idempotent; prefixes/suffixes are a common example.
Use advanced selection as a targeting step
For subset cleanup — for example, trim only text cells in rows where status is “active” — run Advanced selection/filter first. Then choose the cleanup scope tied to the last advanced selection. This is safer than applying cleanup to the entire sheet and trying to reverse unrelated changes later.
Spotted an error or an outdated step? Report a docs issue.