TEXTSPLIT has issue when sent a param for text a array

Anonymous
2023-02-01T21:34:54+00:00

When sent a array to text param to textsplit function her always return a one column.

Trying to force a row break with ; passing col and row delimiter

Or just use only column delimiter

Anyone confirm this a bug, have a workaround for this?

Topic set to other= same case on Mac and Windows

I suppose the right result would be:

Microsoft 365 and Office | Excel | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Kevin Jones 7,265 Reputation points Volunteer Moderator
    2023-02-01T21:48:54+00:00

    Use this formula:

    =TEXTSPLIT(TEXTJOIN(";",TRUE,Table1[Column]),"/",";")

    Kevin

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  2. Kevin Jones 7,265 Reputation points Volunteer Moderator
    2023-02-01T21:54:32+00:00

    It's not a bug. The function is designed to operate on a single text string and split it out into rows and columns. When you pass an array to it, the TEXTSPLIT function does not actually see the array. The Excel formula engine interprets the array before passing it to TEXTSPLIT and it doesn't know what TEXTSPLIT will do. So it assumes that, since you passed a single column of values in, you will get a single column of values out and the rest is discarded.

    Kevin

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  3. Ashish Mathur 102.2K Reputation points Volunteer Moderator
    2023-02-01T23:59:31+00:00

    Hi,

    Enter this formula in cell N3 and drag down

    =TEXTSPLIT(SUBSTITUTE(L3,";",""),"/")

    Hope this helps.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  4. Kevin Jones 7,265 Reputation points Volunteer Moderator
    2023-02-01T21:50:08+00:00

    This formula eliminates the #N/A errors:

    =IFERROR(TEXTSPLIT(TEXTJOIN("~",TRUE,Table1[Column]),"/","~"),"")

    Kevin

    Was this answer helpful?

    0 comments No comments