Split Text to Columns

Split text to columns divides the contents of one column into several, cutting each value at a chosen delimiter โ€” a comma, a space, a dash, or a character you specify. It is the tool for fields that pack more than one fact into a cell: a full name, an address with the city and postal code attached, a timestamp holding a date and a time.

It applies the split directly to the selected values rather than calculating a separate helper column: the result replaces the original rather than sitting beside it, and the new columns are written into the space to the right. Anything already in that space is at risk, so Microsoft’s wizard asks you to select a destination for the split data, and choosing an empty area rather than accepting the default is what prevents the loss.

The split is only as reliable as the delimiter is consistent. A name column split on the first space misfiles every two-word surname; an address split on commas misfires on the row where someone included one inside a building name. After splitting, count the filled cells in the last column and compare that with the number of rows that should have that many parts, because a value that contained an extra delimiter quietly lands one column further along than its neighbors.

A common shortcut is to run the tool over a column of numbers stored as text so the application re-reads them as numbers. It usually works and it is the wrong first choice, because it rewrites the column to fix a type problem and will just as readily re-interpret an identifier, dropping its leading zeros. Set the column type explicitly for that, and where the delimiter is inconsistent or the original must survive, extract with LEFT, RIGHT, MID and FIND into new columns instead.

References:


Discover more from Insightful Data Lab

Subscribe to get the latest posts sent to your email.

Similar Posts

Questions, corrections, or additional insights?

This site uses Akismet to reduce spam. Learn how your comment data is processed.