How to Split a Cell in Excel: Text to Columns, Flash Fill, TEXTSPLIT – LicenceHouse guide

To split a cell in Excel, select the column, go to Data > Text to Columns, choose Delimited, tick the separator (Space, Comma or Other), pick a Destination and click Finish. For names, Flash Fill (Ctrl+E) is often faster. In Excel 2024 and Microsoft 365, =TEXTSPLIT(A2," ") splits text with a formula.

Method Best for Updates automatically? Versions
Text to Columns One-off clean-up of a column by delimiter or fixed width No All desktop versions
Flash Fill (Ctrl+E) Names, codes and patterns you can show by example No Excel 2013 and later
TEXTSPLIT Live formulas that re-split when the source changes Yes Excel 2024, Microsoft 365
LEFT, MID, RIGHT, FIND Live formulas in older versions Yes All versions

How do I split a cell in Excel with Text to Columns?

Text to Columns splits every selected cell at a delimiter you choose and writes the pieces into the columns to the right. It works in every desktop version of Excel and is the quickest way to clean up an imported list.

Six steps to split a cell with Data > Data Tools > Text to Columns: choose Delimited, tick a separator, set Destination $C$2 and click Finish.

  1. Select the cells or the whole column you want to split.
  2. Go to Data > Data Tools > Text to Columns.
  3. Choose Delimited and click Next.
  4. Tick the separator your data uses: Tab, Semicolon, Comma, Space or Other (type a character such as a hyphen or a pipe). Watch the Data preview.
  5. Tick Treat consecutive delimiters as one if some entries contain double spaces.
  6. Click Next. Set a Column data format for each column if needed (for example Text to keep leading zeros).
  7. Change the Destination to an empty cell, such as $C$2, so the original data is kept. Click Finish.

Microsoft's own walkthrough of the Convert Text to Columns Wizard shows the same steps with screenshots. If the text has no consistent separator but every piece has the same length, such as product codes, choose Fixed width in step 3 and click in the preview to place break lines.

How do I split a name into two columns in Excel?

The fastest way to split a full name into first and last name columns is Flash Fill. You type one example and Excel copies the pattern down the column.

A (Full name) B (First name) C (Last name)
2 Sarah Ahmed Sarah Ahmed
3 James O'Neill James O'Neill
4 Priya Patel Priya Patel
  1. In B2, type Sarah and press Enter.
  2. With B3 selected, press Ctrl+E, or go to Data > Data Tools > Flash Fill. The rest of column B fills in.
  3. Repeat in column C: type Ahmed in C2, then press Ctrl+E in C3.

Flash Fill is described in more detail in Microsoft's guide to using Flash Fill in Excel. If nothing happens when you type, check that File > Options > Advanced > Automatically Flash Fill is ticked. Text to Columns with Space as the delimiter also works for names, but it puts middle names into a third column.

How do I split "Last name, First name" in Excel?

For names stored as Ahmed, Sarah, split on the comma and remove the leftover space. In Text to Columns, tick both Comma and Space and tick Treat consecutive delimiters as one. You get the last name in one column and the first name in the next.

With formulas, which work in every version, use this for the last name in B2:

=LEFT(A2, FIND(",", A2) - 1)

And this for the first name in C2:

=TRIM(MID(A2, FIND(",", A2) + 1, 100))

TRIM removes the space after the comma. If you also need to reverse the order or sort the list by surname afterwards, our guide on how to alphabetise in Excel by last name picks up from here.

How do I split a cell by delimiter with a formula?

In Excel 2024 and Microsoft 365, TEXTSPLIT splits text at any delimiter and spills the results into neighbouring cells. Its syntax is:

TEXTSPLIT formula =TEXTSPLIT(A2, ";") explained: A2 holds London;Paris;Rome and the semicolon delimiter spills three results across columns.

=TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])

For London;Paris;Rome in A2, =TEXTSPLIT(A2, ";") returns London, Paris and Rome across three columns. Use an array of delimiters to split on more than one character: =TEXTSPLIT(A2, {",", ";"}). Set ignore_empty to TRUE to skip double delimiters. Microsoft's TEXTSPLIT function reference covers each argument.

Because TEXTSPLIT spills, the cells to its right must be empty. If they are not, you see a #SPILL! error; our guide to the #SPILL! error explains how to clear it. Related helpers TEXTBEFORE and TEXTAFTER return just the part before or after a delimiter, for example =TEXTAFTER(A2, " ") for a surname.

To split text that sits on separate lines inside one cell (entered with Alt+Enter), use the line-break character as the delimiter: =TEXTSPLIT(A2, CHAR(10)). Our guide on starting a new line in an Excel cell explains where those breaks come from.

Which Excel versions have TEXTSPLIT?

TEXTSPLIT, TEXTBEFORE and TEXTAFTER are available in Excel 2024 and Microsoft 365 (Windows and Mac), not in Excel 2021, 2019 or 2016. Text to Columns and Flash Fill work in all of those versions, so you can always split cells; you just can't do it with a live single formula in older releases.

In Excel 2016 to 2021, use LEFT, MID, RIGHT and FIND instead. For a two-word name in A2:

First name: =LEFT(A2, FIND(" ", A2) - 1)
Last name:  =RIGHT(A2, LEN(A2) - FIND(" ", A2))

If you split text often and want the newer functions, compare the options in Excel 2024 vs Excel in Microsoft 365, or see the Office 2024 licence options, which include Excel 2024 with TEXTSPLIT.

How do I split date and time in Excel?

Excel stores a date-time as one number: the whole part is the date and the decimal part is the time. Split them with arithmetic, not Text to Columns.

Table splitting 14/03/2026 09:45 in A2: =INT(A2) returns the date 14/03/2026, while =A2-INT(A2) or =MOD(A2,1) returns the time 09:45.

Cell Formula Result (for 14/03/2026 09:45 in A2) Format to apply
B2 (date) =INT(A2) 14/03/2026 Short Date
C2 (time) =A2-INT(A2) 09:45 Time

=MOD(A2,1) also returns the time part. If the date-time is stored as text (it sits on the left of the cell and won't change format), use Text to Columns with Space as the delimiter, and set the first column's format to Date with the right order, such as DMY, in step 3 of the wizard.

What we commonly see: people run Text to Columns without changing the Destination, and Excel overwrites the columns to the right after a single confirmation prompt. Always insert empty columns first or point the Destination at a free area. Another frequent problem is stray spaces: "Sarah  Ahmed" with two spaces creates an empty column unless you tick Treat consecutive delimiters as one. Our guide to removing spaces and characters in Excel covers TRIM and SUBSTITUTE for cleaning text first.

Advanced nuance: Text to Columns remembers your last delimiter settings for the rest of the session. If you then paste text from another program, Excel may split it automatically using those settings. To stop that, open Text to Columns again, untick the delimiter and click Finish on a single dummy cell. Also note that splitting a value such as 00123 with the General format strips the leading zeros; set that column to Text in step 3 to keep them.

Frequently asked questions

Can I split a single cell into two cells without adding columns?

No. Excel cells cannot be divided the way Word table cells can. Splitting always writes the pieces into separate cells, usually in the columns to the right. If you only want a cell to look divided, you can add a diagonal border through Format Cells > Border, but that does not create a second cell or store separate values.

Why won't Text to Columns work on my selection?

Text to Columns converts only one column at a time, so selecting cells across two or more columns gives an error. Select a single column of data instead. The button is also unavailable while you are still editing a cell, so press Esc first. On a protected sheet you need to unprotect the sheet before Excel can write the split values.

Why does Flash Fill give the wrong result?

Flash Fill guesses the pattern from your examples. With inconsistent data, such as some names with middle names or titles, it can pick the wrong word. Type a second or third example in the rows where it went wrong and Excel refines the pattern. Always scan the results, because Flash Fill does not warn you about rows it misread.

Will split data update if I change the original cell?

Not with Text to Columns or Flash Fill. Both produce static values, so editing the source does nothing to the split cells. If you need the results to update, use formulas: TEXTSPLIT, TEXTBEFORE and TEXTAFTER in Excel 2024 or Microsoft 365, or LEFT, MID, RIGHT and FIND in older versions.

How do I split a cell into rows instead of columns?

Use TEXTSPLIT with the row delimiter argument and leave the column delimiter empty, for example =TEXTSPLIT(A2, , ","), which spills each comma-separated item down a column. In older versions, split into columns with Text to Columns, then copy the result and use Paste Special with Transpose to turn the row into a column.

Related guides

Links in this guide

Link Type Why it helps
Microsoft Support: Convert Text to Columns Wizard External Official steps for splitting by delimiter
Microsoft Support: Using Flash Fill in Excel External How Flash Fill detects patterns and how to turn it on
Microsoft Support: TEXTSPLIT function External Full argument reference and version list
How to alphabetise in Excel Internal Sort the split list by surname
#SPILL! error in Excel Internal Fix blocked TEXTSPLIT results
New line in an Excel cell Internal Explains line breaks you may need to split on
Excel 2024 vs Excel in Microsoft 365 Internal Which version has the newer text functions
Office 2024 licence options Internal Office editions that include Excel 2024
Remove spaces and characters in Excel Internal Clean text before splitting
Excel, Excel formulas, Excel tips, How-to