The output from TEXTSPLIT is anarraythat willspillinto multiple cells in the workbook.

Split text into columns or rows

TEXTSPLIT can split a text string into columns or rows.

To use TEXTSPLIT, you will need to provide the text to split and a delimiter.

A basic example of the TEXTSPLIT function

is not found, yet TEXTSPLIT behaves as if the delimiterwas foundat the end of the text.

Both the TEXTBEFORE and TEXTAFTER functions have a similar feature, but it must be enabled with thematch_endargument.

With TEXTSPLIT, this behavior is automatic anduseful.

A basic example of the TEXTSPLIT function

Only “Red” and “Green” are returned.

Match mode

The fifth argument,match_mode, determines case sensitivity when looking for a delimiter.

By default, TEXTSPLITiscase-sensitive andmatch_modeis zero (0).

A basic example of the TEXTSPLIT function

Supply 1 todisable case sensitivity.

In the example below the delimiter is " x " and " X “.

The formula in D5 sets match mode to 1 to make TEXTSPLIT ignore case.

A basic example of the TEXTSPLIT function

Padding

The last argument in TEXTSPLIT ispad_with.This argument is optional and will default to #N/A.

The formula in cell F3 is:

Notice also that there is an extra space separating green and purple.

TheTRIM functioncan be used to clean up extra space characters that appear in the output from TEXTSPLIT.

A basic example of the TEXTSPLIT function

However, when TEXTSPLIT is used on arangeof cells, TEXTSPLIT returns an “array of arrays”.

The result may be a truncated version of the data or in some cases an error.Example here.

TEXTAFTER Function

The Excel TEXTAFTER function returns the text that occurs after a given substring or delimiter.

TEXTSPLIT example with empty values

TEXTSPLIT and case sensitivity

TEXTSPLIT rows and columns example

TEXTSPLIT with custom padding

TEXTSPLIT with multiple delimiters

Excel formula: Abbreviate names or words

Excel formula: Clean and reformat telephone numbers

Excel formula: Get name from email address

Excel formula: Sum numbers in single cell

Excel formula: Split full name into parts

Excel formula: Split dimensions into three parts

Excel formula: Extract nth word from text string

Excel formula: Extract numbers from text

Excel formula: Cell contains specific words

Excel formula: Text split to array

Excel formula: Sort comma separated values

Excel formula: Replace one delimiter with another

Excel formula: Get domain from email address

Excel formula: TEXTSPLIT get numeric values

Article image

Article image

Article image

Excel TEXTJOIN function

Excel TEXTBEFORE function

Excel TEXTAFTER function

Excel CONCAT function

A basic example of the TEXTSPLIT function

TEXTSPLIT example with empty values

TEXTSPLIT with custom padding

TEXTSPLIT with multiple delimiters