4 Comments
User's avatar
Jon Peltier's avatar

Note that if there are spaces adjacent to your delimiter, you should include them in the delimiter. Otherwise, the spaces are left in the output text.

TEXTSPLIT("Mary, Bill, Pete", ",") with no space in the delimiter "," results in {"Mary", " Bill", " Pete"} with spaces before " Bill" and " Pete".

TEXTSPLIT("Mary, Bill, Pete", ", ") with a space in the delimiter ", " results in {"Mary", "Bill", "Pete"} with no spaces.

Expand full comment
Ajay Patel's avatar

Thanks Jon! I think I mentioned using =TRIM() as a way to alleviate this issue as well.

Expand full comment
Jon Peltier's avatar

Perhaps you mentioned TRIM(), and I thought of it. But using the precise definition of the delimiter is probably most efficient.

Expand full comment
User's avatar
Comment deleted
Oct 24, 2023
Comment deleted
Expand full comment
Ajay Patel's avatar

Thanks Michael! I just put out a newsletter on the TAKE function.

Expand full comment