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.
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.
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.
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.