Split a column into several columns
“Martin, Alice”, “75011 Paris”, “FR-2026-00042”: one cell, several facts. To sort by city, filter by year or look up a postcode, each fact needs its own column. Excel’s Text to Columns does it on the sheet; formulas do it when the pattern is irregular. Here are both, the traps that cost time, and how to split a column of millions of rows.
Method 1: split at a separator
When the parts are separated by the same character, a comma, a dash, a semicolon or a space, splitting at that character is the simplest and safest method. In Excel, select the column, then Data › Text to Columns › Delimited, choose the separator and the destination.
Three precautions: insert empty columns to the right first, because Text to Columns overwrites what is there; set columns such as postcodes or product codes to Text in the last step, or their leading zeros disappear; and check rows that contain the separator more times than expected.
Method 2: formulas, when the pattern is irregular
When you want only one part, or the separator appears a variable number of times, formulas give full control. The usual trio is LEFT, RIGHT and MID, with FIND or SEARCH to locate the separator.
=LEFT(A2, FIND(",", A2) - 1) text before the first comma
=TRIM(MID(A2, FIND(",", A2) + 1, 100)) text after the first comma
=LEFT(A2, 5) the first five characters, e.g. a postcode
=RIGHT(A2, 5) the last five charactersWrap the result in TRIM to remove the space that usually follows the separator. Rows without the separator make FIND return an error in Excel; IFERROR gives them a fallback.
Method 3: Flash Fill
Flash Fill (Ctrl+E) guesses the pattern from one or two examples you type. It is fast for a quick job and opaque for a recurring one: nothing records the rule it inferred, and it can guess wrong on unusual rows without warning.
Split a column in Big Sheets
Big Sheets is a spreadsheet for files of several million rows, in your browser. Splitting at a separator is a command on the column.
- Open the file and select the column to split.
- Right-click and choose Split column.
- Type the separator, for example a comma, and confirm.
- The parts appear as new columns next to the original, one per part of the longest value, with the spaces around each part removed. Double-click their headers to rename them, such as owner and site.
=LEFT([@Name], FIND(",", [@Name]) - 1)
=TRIM(MID([@Name], FIND(",", [@Name]) + 1, 100))For irregular patterns, the same functions as Excel work in calculated columns, in English or French, on every row at once: LEFT, RIGHT, MID, FIND, SEARCH, LEN, TRIM, SUBSTITUTE. In Big Sheets, FIND returns an empty cell when the text is not found, rather than an error.
Real cases
- Full names “Last, First”: split at the comma, then trim.
- Postcode and city “75011 Paris”: the first five characters with LEFT, the rest with MID from position 7.
- Codes “FR-2026-00042”: split at the dash into country, year and number.
- E-mail domains: everything after “@” with MID and FIND, to count customers per company.
- Two facts in a report column, such as “Alice Martin, Lyon”: split, then use the site in a pivot table.
Separator or fixed position?
Splitting at a separator works when the parts have variable lengths but a reliable marker between them: names, addresses, codes with dashes. Fixed positions work when every value has the same layout, such as a 5-digit postcode followed by a city, or a code whose first two letters are always the country.
When neither is true, for example free-text addresses typed by hand, no rule will be right on every row. Split what you can, then filter on the rows where a part is empty or too long, and fix those few by hand or with a targeted formula.
After splitting
- Check the rows with too many or too few parts: filter the new columns on empty values.
- Convert the parts that are numbers or dates to the right type.
- Keep or delete the original column; each step can be undone with Ctrl+Z and is recorded for replay on the next file.
Your file stays on your device the whole time. Try it on the sample data, no account needed.
Try it on your own file
Open it in Big Sheets: no sign-up, and your file never leaves this browser.
One plan: €29 incl. VAT per month, everything included, cancel any time. See pricing
Questions
- Does splitting lose leading zeros?
- In Excel it can, if the part is converted to a number. Keep codes as text.
- Can I split at more than one character, like “ - ”?
- Yes. Type the whole separator. Big Sheets splits at each occurrence.
- Does it work on a million rows?
- Yes in Big Sheets, on files tested up to 5 million rows, in your browser.