Use Text to Columns (Excel) or Split text to columns (Google Sheets) when you want a one-off, permanent split. Use a formula such as TEXTSPLIT or SPLIT when the source data changes and the split must update with it. The two methods behave differently, and choosing the wrong one is the most common cause of damaged data.
The dash is the trickiest delimiter. Hyphens, en dashes and minus signs look alike but are different characters, so a split that works on one row can silently fail on the next.
SOP 1: Terms Used in This Guide
Read these definitions before you start, because the rest of the guide uses them without re-explaining.
- Delimiter: the character or string that marks where one value ends and the next begins. Common examples are a comma, a space, a hyphen or a semicolon.
- Token or field: one piece of text left after a split. In
SKU-2231-BLU, the tokens areSKU,2231andBLU. - Text qualifier: a character, usually a double quotation mark, that protects a delimiter inside a value. It stops
"Smith, Jane"from becoming two fields. - Fixed width: a split at set character positions rather than at a delimiter. It suits data where every field is the same length.
- Destructive split: a split that overwrites the source cells. Text to Columns works this way, and the original text is gone once you save.
- Spill: the behaviour of a formula that returns several values and fills the cells beside it. A spill fails if any target cell already holds data.
Skip the setup
Every client, lead and follow-up in one sheet, with drop-downs and status colours already set up.
SOP 2: Choose the Method Before You Touch the Data
Four methods cover almost every case. They differ in whether they keep the original text, whether they refresh, and which software they need.
| Method | Where it runs | Overwrites source | Updates when source changes | Requirement |
|---|---|---|---|---|
| Text to Columns | Excel (Data tab) | Yes | No | Any Excel version |
| Split text to columns | Google Sheets (Data menu) | Yes | No | Any Sheets account |
| TEXTSPLIT or SPLIT formula | Excel 365 or 2024, Google Sheets | No | Yes | TEXTSPLIT needs Excel 365 or 2024; SPLIT works in Sheets |
| Split Column by Delimiter | Power Query in Excel | No (creates a new query) | Yes, on refresh | Excel 2016 or later, or Excel 365 |
Apply this decision rule:
- If the split is a one-time clean-up of a list you will not receive again, use Text to Columns or Split text to columns. Keep a copy of the raw column first.
- If the source is a live table that gets updated, use a formula. Use Power Query if the file is imported from a system export that arrives on a schedule.
- If the data arrives as a CSV file with quoted values, import it through Power Query rather than splitting the text afterwards. SOP 6 explains why.
SOP 3: Split by Comma
Commas are the most common delimiter in exported data, and they are also the easiest to get wrong when the values contain commas of their own.
SOP 3.1: Split by comma in Excel
- Select the column that holds the text. Confirm that the columns to its right are empty, because the split will overwrite them.
- Open the Data tab and choose Text to Columns in the Data Tools group.
- Select Delimited, then Next.
- Tick Comma. Look at the preview pane before you continue.
- Set the Column data format for each output column. Use Text for codes with leading zeros, such as
00412, so the zeros survive. - In Destination, enter the first cell that should receive output, for example
$B$1, then select Finish.
SOP 3.2: Split by comma in Google Sheets
- Select the column that holds the text.
- Open the Data menu and choose Split text to columns.
- Sheets detects the separator automatically. If it chooses wrongly, change the separator to Comma from the small menu that appears at the bottom right of the output.
- Check the result. The first output column stays where it was, and the others fill the columns to its right.
SOP 3.3: Split by comma with a formula
Use a formula when the source is live. In Excel 365 or Excel 2024:
=TEXTSPLIT(A2, ",")
This spills the tokens across the row. Leading spaces remain, so Blue Widget arrives as Blue Widget with a space in front. Wrap the reference in TRIM if the spaces matter: =TRIM(TEXTSPLIT(A2, ",")).
In Google Sheets:
=SPLIT(A2, ",", FALSE)
The third argument matters, as SOP 4.3 shows.
SOP 4: Split by Space
A space looks simple, but it breaks in three common ways: repeated spaces, names with more than two parts, and non-breaking spaces copied from web pages.
SOP 4.1: Deal with repeated spaces
Excel’s Text to Columns treats every space as a separator, so Blue Widget (two spaces) produces an empty column between the two words. It has no option to treat consecutive delimiters as one.
Clean the text first with TRIM, which removes extra spaces inside a value as well as at the ends. Put this in a helper column:
=TRIM(A2)
Then split the helper column. In Excel 365, TEXTSPLIT avoids the problem directly. Its fourth argument, ignore_empty, set to TRUE, drops the blank tokens:
=TEXTSPLIT(A2, " ", , TRUE)
SOP 4.2: Handle names with more than two parts
A split on every space turns Mary Ann Smith into three fields, which may not be what you want. Decide what each column should hold before splitting. If the first column must be the first name and the rest must be the surname, split once at the first space.
=LEFT(A2, FIND(" ", A2) - 1) returns Mary.
=MID(A2, FIND(" ", A2) + 1, 200) returns Ann Smith.
The number 200 is simply longer than any name you will meet. Replace it with LEN(A2) if you want to be exact.
SOP 4.3: Use the split-by-each setting in Google Sheets
In Sheets, the delimiter argument of SPLIT is treated by default as a set of separators. The formula =SPLIT(A2, ", ") splits on a comma, a space, or both, because each character in the string is a separate separator by default. The result is that Blue Widget becomes two fields when you wanted one.
The fix is to set the third argument to FALSE, which treats the whole string , as one delimiter:
=SPLIT(A2, ", ", FALSE)
Set it to TRUE only when you deliberately want any of the listed characters to act as a separator.
SOP 4.4: Remove non-breaking spaces
Text copied from a web page or a PDF often contains non-breaking spaces (character code 160). They look like spaces, but neither TRIM nor a space-based split recognises them. Replace them first:
=SUBSTITUTE(A2, CHAR(160), " ")
Then apply TRIM to the result. Without this step, a value can appear to split correctly while the field still contains a hidden character that breaks lookups later.
Ready-made template
Landfall Job Application Tracker
Track every application, interview and follow-up date, with drop-downs for status.
SOP 5: Split by Dash
The dash needs more care than any other delimiter, because several characters look like a dash and only one of them is a plain hyphen.
SOP 5.1: Identify the dash character
Check which character the data uses before you write any formula. Use UNICODE on the character position:
=UNICODE(MID(A2, FIND("-", A2), 1))
Hmm, that test only works if you already know the position. A simpler check is to search for the plain hyphen with FIND("-", A2). If it returns #VALUE!, the data uses something else. The common alternatives are:
- Hyphen-minus (
-, code 45): the character on a standard keyboard, and the one most exports use. - En dash (
–, code 8211): longer, often used in ranges such as2020–2024. Word processors insert it automatically. - Minus sign (
−, code 8722): appears in some exported figures and scientific data.
A split on - will not recognise an en dash. The cell looks split in the preview but the second field is still joined to the first. Use SUBSTITUTE to convert the en dash to a hyphen before splitting, if your data is consistent:
=SUBSTITUTE(A2, "–", "-")
Type the en dash directly into the formula, or copy it from the data, to make sure the character matches.
SOP 5.2: Split on the first or last dash
Codes often contain more than one dash, for example AB-12-CD. A split on every dash gives three fields, which may be right, but the formulas below target one position at a time.
Text after the first dash:
=MID(A2, FIND("-", A2) + 1, 200)
Text after the last dash. This is the most useful formula in this section, and it is not obvious. It finds the number of dashes, replaces only the last one with a temporary marker, and then reads everything after the marker:
=RIGHT(A2, LEN(A2) - FIND("~", SUBSTITUTE(A2, "-", "~", LEN(A2) - LEN(SUBSTITUTE(A2, "-", "")))))
The tilde is a placeholder. Use a character that never appears in your data.
SOP 5.3: Protect dates and numbers
Splitting 2024-03-15 on the dash can produce three numbers, and Excel may also convert parts that look like dates. Two problems follow:
- Leading zeros disappear.
03becomes3. - In some regional settings, the parts are read in a different order, so
03and15can swap.
Set the output columns to Text in Text to Columns, or leave dates alone and use DATEVALUE or DATE with LEFT, MID and RIGHT to build the value yourself.
Negative numbers have a similar problem. A value such as -45 produces an empty first field if you split on the dash, so split only values you know to be codes or ranges.
SOP 6: Handle Quotes and Embedded Delimiters
A field such as "Smith, Jane" contains a comma that belongs to the value, not a separator. Splitting on every comma breaks the name into two columns and shifts every field to its right, which causes the errors that are hardest to spot.
SOP 6.1: Use the text qualifier in Text to Columns
In Excel’s Text to Columns, the Text qualifier setting (on the second step of the wizard) tells Excel to treat anything between a pair of double quotation marks as one value. Leave it at the default " for standard CSV data. If the qualifier does not appear in the preview as you expect, check whether the quotation marks are straight (") or curly (“ and ”). Curly quotation marks do not work as qualifiers.
SOP 6.2: Do not rely on formulas for quoted CSV
TEXTSPLIT and SPLIT do not understand quotation marks. They split every comma, so quoted values break. You can write a formula that handles a specific pattern, but the result is hard to maintain and hard to audit.
The better fix is to import the CSV through Power Query. Use Data, then Get Data, then From Text/CSV. Power Query reads the quoted fields correctly and treats each one as a single value. You then apply any further splits with Transform, then Split Column, then By Delimiter.
SOP 7: Worked Example
This example uses a stock export with three rows. The raw data is in column A, and the goal is four columns: product code, colour, quantity and warehouse.
| Row | Raw text (column A) |
|---|---|
| 2 | SKU-2231-BLU, Blue Widget, 12 units, Warehouse A |
| 3 | SKU-1090-RED, Red Widget, 3 units, Warehouse B |
| 4 | SKU-4412-GRN, Green Gizmo, 0 units, Warehouse A |
SOP 7.1: Split the row on commas
Start with a formula, so you can see each step in the sheet. In Excel 365, enter this in cell B2:
=TRIM(TEXTSPLIT(A2, ","))
The result spills across four columns: SKU-2231-BLU, Blue Widget, 12 units and Warehouse A. TRIM removes the space that follows each comma. Fill the formula down to row 4.
In Google Sheets, use this in B2:
=TRIM(SPLIT(A2, ",", FALSE))
The FALSE argument matters here. Without it, Sheets would also split Blue Widget on its space, and the layout would be wrong.
SOP 7.2: Extract the colour and number from the product code
The product code in column B has two dashes. The number sits between the first and second dash, and the colour follows the last dash.
Number, in cell E2:
=MID(B2, FIND("-", B2) + 1, FIND("-", B2, FIND("-", B2) + 1) - FIND("-", B2) - 1)
This returns 2231. The inner FIND locates the first dash at position 4. The second FIND starts searching after that dash and locates the second dash at position 9. The length of the middle section is 9 minus 4 minus 1, which is 4.
Colour, in cell F2, using the last-dash formula from SOP 5.2:
=RIGHT(B2, LEN(B2) - FIND("~", SUBSTITUTE(B2, "-", "~", LEN(B2) - LEN(SUBSTITUTE(B2, "-", "")))))
This returns BLU.
SOP 7.3: Convert the quantity to a number
Column C holds 12 units, which Excel cannot add up as it stands. Take the number before the space and convert it:
=VALUE(LEFT(C2, FIND(" ", C2) - 1))
This returns 12. Row 4 returns 0, which is a valid number and should be treated as stock out, not as a blank.
SOP 7.4: Check the result
Before you copy the output anywhere, confirm three things:
- Each row returns the same number of tokens. A row with an extra comma in the product description will shift its fields, and the formula will not warn you.
- The number column contains numbers. Sum it, or use
ISNUMBER, to confirm. - The original column A is unchanged. Formulas leave the source intact, which is the reason to use them here.
If you had chosen Text to Columns instead, the result would look the same on screen, but the raw export would be gone. That is the trade-off the worked example makes visible.
SOP 11: Decision Checklist
Use this sequence each time you split a column.
- Identify the delimiter, and confirm the exact character with a
FINDorUNICODEcheck. - Check for repeated spaces, non-breaking spaces and curly quotation marks, and clean them first.
- Decide whether the split is a one-off or will repeat. One-off splits can use Text to Columns or Split text to columns. Repeating splits should use a formula or Power Query.
- Copy the raw column to a backup sheet before any destructive split.
- Clear the target cells, and set text formats for codes and leading zeros.
- Check a sample of rows at the start, middle and end of the data.
- Count the tokens per row, and confirm the numbers match the expected layout.
- Confirm the output columns are the right type, and that totals and lookups still work.
- Record which method you used, so the next person can reproduce the split.