Splits text out across rows and/or columns
The TEXTSPLIT function is one of Excel's text functions.
The TEXTSPLIT function works in the same way as the text-to-columns functionality in native Excel or split-by functionality in PowerQuery. It allows you to split values from a cell across rows and/or columns based on a delimiter.
The function makes use of Excel' dynamic array functionality to "spill" the results aross rows and columns.
TEXTSPLIT is a great improvement on using other text functions such as LEFT, RIGHT, MIDDLE etc to split text out from a cell.
Let's take a look at a simple example of the TEXTSPLIT function.
We would like to split the three words in cell A1 out across three separate cells, firstly across columns and secondly down rows.
Split the three words in cell A1 out across three separate cells, firstly across columns and secondly down rows.
We would like to split the three words in cell A1 out over both rows and columns. We will split across columns using a space delimiter " " and down rows using the hyphon "-" delimiter.
text– The text to be split
col_delimiter – What to split columns by
[row_delimiter] – What to split rows by (optional)
[ignore_empty] – Ignore empty values. TRUE = ignore, FALSE = preserve (default).
[match_mode] – Case sensitive delimiter. TRUE = yes (default) , FALSE = no
[pad_with] – The value to pad with
Read more about the TEXTSPLIT function on the Microsoft support page here.