I am trying to split a string in an excel formula, something like I can do in many programming languages, e.g.
string words = \"some text\".split(\' \');
AFAIK the best you can do to emulate Split()
is to use FILTERXML
which is available from Excel 2013 onwards (not Excel Online or Mac).
The syntax more or less always is:
=FILTERXML(""&SUBSTITUTE(A1,"|","")&" ","//s")
This would return an array to be used in other functions and would even hold up if no delimiter is found. If you want to read more about it, maybe you are interested in this post.