0

I am doing a survey on Microsoft Forms and the responses are coming through as one string in one cell; as follows:

Product1;Product2;Product3;Product4,...

Is there an way in excel to split these individual strings into individual columns?

Product1 Product2 Product3
3
  • 2
    TextToColumns in the data tab. Commented Jul 3, 2024 at 15:38
  • 2
    Or using the following formula : =INDEX(TEXTSPLIT($A2,";"),COLUMN(A1)) the reason why i have wrapped within INDEX() because you have tagged Excel Tables otherwise. TEXTSPLIT(A2,";") Commented Jul 3, 2024 at 15:39
  • And if you are on an older version of Excel you can use find(), left(), right() and mid(). Commented Jul 3, 2024 at 17:28

1 Answer 1

1

Several ways.

  • textsplit fn - Per comment above (source: @MB)
  • textsplit as array fn: if you wish to apply as an array function across many cell (say B2:b200), thne you need to revise the approach, e.g.

= let(x_, b3:B200,y_,lambda(a_,textsplit(",",1,a_))),y_)

  • FilterXML (if you don't have Office 365 compatible version of Excel nor were your signed up to Insider Office initiative to experiment with beta version functions/office features)

= Filterxml("<x><y>" & Substitute(A1,";","</y><y>")&"</y></x>,"//y")

See 8 ways including above I'm sure to split text here

PS - composed freehand - kindly ensure veracity/operability by testing. revert if issue(s)

Hopefully not ☺ ta

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.