Learn Excel
EN

Home › Excel basics › Text to Columns & Flash Fill

How to Split Cells in Excel: Text to Columns, Flash Fill and TEXTSPLIT

When first and last names, addresses or codes are stuck together in one column, you don't need to retype them. Excel has three ways to split them: Text to Columns, Flash Fill and the TEXTSPLIT function.

In this guide
  1. Text to Columns
  2. Flash Fill (Ctrl+E)
  3. TEXTSPLIT function
  4. Which to use
  5. FAQ

Text to Columns

Best for data with a clear separator, like commas, semicolons or spaces.

  1. Make sure there are empty columns to the right; the split data overwrites whatever is there.
  2. Select the column to split.
  3. Go to Data › Text to Columns.
  4. Choose Delimited (split at a character) and click Next.
  5. Tick the separator: Tab, Semicolon, Comma, Space, or type your own under Other. The preview shows the result.
  6. Click Next, set a column format if needed (for example Text, to keep leading zeros in codes), choose a Destination, and click Finish.
ABC
1Anna,Jansen,Amsterdam
2↓ Text to Columns, comma
3AnnaJansenAmsterdam

Choose Fixed width instead of Delimited when every part has the same number of characters, such as account numbers.

Bonus trick: Text to Columns with no changes (just click Finish) converts numbers and dates stored as text into real numbers and dates.

Flash Fill (Ctrl+E)

Flash Fill recognizes a pattern from an example you type. Great when there's no single separator.

  1. Next to "Anna Jansen" in A2, type Anna in B2.
  2. Go to the cell below (B3) and press Ctrl+E (or Data › Flash Fill).
  3. Excel fills in the first names for every row.

It also works for combining (type "Jansen, Anna"), reformatting phone numbers, or extracting the domain from email addresses. Check the results: if the pattern is ambiguous, give a second example. Flash Fill is static; it doesn't update when the source changes.

TEXTSPLIT: a formula that updates

In Microsoft 365 and Excel 2024:

=TEXTSPLIT(A2, ",")

splits "Anna,Jansen,Amsterdam" into three cells and updates automatically when A2 changes. For more control, see TEXTBEFORE and TEXTAFTER or LEFT, RIGHT and MID.

Which method should you use?

SituationBest option
One-off split with a clear separatorText to Columns
Irregular pattern, quick resultFlash Fill
Data that keeps changingTEXTSPLIT or LEFT/MID/RIGHT formulas
Imported CSV in one columnText to Columns with Comma or Semicolon

Frequently asked questions

Why is Flash Fill not working?

It may be turned off: File › Options › Advanced › Automatically Flash Fill. Also make sure your example is directly next to the data, and try pressing Ctrl+E in the cell below your example.

Text to Columns removed the leading zeros in my codes. How do I keep them?

In the last step of the wizard, select the column and set its format to Text before clicking Finish.

Can I undo Text to Columns?

Yes, press Ctrl+Z straight after. Keep a copy of the original column if you're unsure.