Explanation

In this example, the goal is to split thetext stringsin column B into anarrayof values.

TEXTSPLIT is a great way to solve this problem, because it is so simple to use.

In Excel 365, the array will spill into the range D5:H5 automatically.

Splitting comma-separated text with FILTERXML function

I learned the FILTERXML trick from Bill Jelen in aMrExcel video.

FILTERXML is not available in Excel on the Mac, or in Excel Online.

To do that, you’ve got the option to use the INDEX function.

Splitting comma-separated text with FILTERXML function

This approach requires a bit more setup.

However, if you only need a one-off manual process, you’re free to also use Excel’sText-to-Columnsfeature.

TEXTSPLIT can split text into rows or columns.

Splitting comma-separated text with FILTERXML function

FILTERXML Function

The Excel FILTERXML function returns specific data from XML text using the specified XPath expression.

SUBSTITUTE Function

The Excel SUBSTITUTE function replaces text in a given string by matching.

Splitting comma-separated text with FILTERXML function

Splitting comma-separated text with FILTERXML function

Excel formula: Split text with delimiter

Excel formula: Get first word

Excel formula: Extract nth word from text string

Excel formula: Extract word that begins with specific character

Excel formula: Extract multiple lines from a cell

Excel formula: Split text and numbers

Excel formula: Split text string at specific character

Excel TEXTSPLIT function

Excel FILTERXML function

Excel SUBSTITUTE function

Excel TRANSPOSE function

Splitting comma-separated text with FILTERXML function