Data Cleaning with TEXTSPLIT, TRIM, and PROPER
Syntax Structure
=TEXTSPLIT(text, col_delimiter, [row_delimiter])text: The string to split into separate columns.
col_delimiter: Character dividing the words.
Live Interactive Spreadsheet
⚡ Excel 365, Excel for Web
Dynamically spill address components across columns based on comma delimiter.
| # | A (Raw Address Input) | B (City Output) | C (State Output) | D (ZIP Output) |
|---|---|---|---|---|
| 2 | San Francisco | CA | 94107 | |
| 3 | Austin | TX | 78701 | |
| 4 | New York | NY | 10001 | |
| 5 | Seattle | WA | 98101 |
Streamlining Messy Datasets
Excel provides dynamic array formulas like TEXTSPLIT alongside TRIM() and PROPER().
💡 Pro Tip / Best Practice
Wrap dirty user inputs in
=PROPER(TRIM(A2)) to standardize all names to Title Case.