Excel TEXTSPLIT function

Spreads a text across several cells using a delimiter, like "Text to Columns" but as a formula. In Spanish Excel it is called DIVIDIRTEXTO.

Syntax

English Excel

=TEXTSPLIT(text, col_delimiter, [row_delimiter])

Spanish Excel (Mexico)

=DIVIDIRTEXTO(texto, delimitador_de_columna, [delimitador_de_fila])

Spanish Excel (Spain, Latin America)

=DIVIDIRTEXTO(texto; delimitador_de_columna; [delimitador_de_fila])

ArgumentWhat it is
textThe text to split.
col_delimiterSplits into columns.
row_delimiteroptionalSplits into rows.

Example

TEXTSPLIT(text, delimiter) spreads a text across several cells to the right, like "Text to Columns", but as a formula: if the text changes, so does the result.

=TEXTSPLIT(B2,", ")

Common mistake

Excel 365 only. It needs free cells to the right; if one is taken it returns #SPILL!.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice TEXTSPLIT

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

Split text with TEXTSPLIT

TEXTSPLIT(text, delimiter) spreads a text across several cells to the right, like "Text to Columns", but as a formula: if the text changes, so does the result.

Example=TEXTSPLIT(B2,", ")DIVIDIRTEXTO = TEXTSPLIT

In C2, split the products in B2, one per cell.

C2
ABCDEFGH
1OrderProducts
21,042Coffee, Bread, Milk, Eggs, Cheese
3

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What is TEXTSPLIT called in Spanish?
In Spanish Excel it is DIVIDIRTEXTO. The formula =TEXTSPLIT(B2,", ") is written =DIVIDIRTEXTO(B2;", ") (or with commas in Mexico).
Why does TEXTSPLIT use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common TEXTSPLIT mistake?
Excel 365 only. It needs free cells to the right; if one is taken it returns #SPILL!.