I have text that I would like to split to the right and left using a delimiter. The text looks something like this:
This is text 10 : 12 More Text Some1 14 : 10 MoreText
Output should be:
This is text | 10 | 12 | More Text
Some1 | 14 | 1 | MoreText
I have this formula but it doesn't work as it's supposed to.
=ARRAYFORMULA(IF(C2:C="","",(SPLIT(REGEXREPLACE(C2:C,"\s*(\d+)\s*","|$1|"),"|"))))
Link to Spreedsheet - https://docs.google.com/spreadsheets/d/1EmL4kzCGxRbwvNJntwMokqgt8yjjAqnZuUidTbZe6Z8/edit?usp=sharing
For example, it outputs the result of the second row above as Some | 1 | 14 | 10 | MoreText
when 1
is part of the Some1
text. I just want the formula to split the text 4 spaces from the colon.
Please help me fix this, will appreciate.