Seperate cell info into rows

ekhawaja

Board Regular
Joined
Dec 16, 2018
Messages
60
Office Version
  1. 365
Hello,

So i have multiple data in one cell which i would like to get split into individual rows. See sample snaps.

Basically, "names" that need to be extracted either begin with 27, 21, 22, 30 or 31 followed by alphabets/dash/number. Some cells have a space separating the listed items and some use "," comma, and some have blank space, but it is not consistent.

Any way i can split the data into individual rows?
 

Attachments

  • Screenshot 2023-09-11 173755.png
    Screenshot 2023-09-11 173755.png
    17.2 KB · Views: 8

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hello,

So i have multiple data in one cell which i would like to get split into individual rows. See sample snaps.

Basically, "names" that need to be extracted either begin with 27, 21, 22, 30 or 31 followed by alphabets/dash/number. Some cells have a space separating the listed items and some use "," comma, and some have blank space, but it is not consistent.

Any way i can split the data into individual rows?
thanks in advance.
 
Upvote 0
Maybe something along these lines?

Code:
=TRANSPOSE(TEXTSPLIT(LEFT(A1&A2,LEN(A1&A2)-1),{","," "}))
 
Upvote 0
Maybe something along these lines?

Code:
=TRANSPOSE(TEXTSPLIT(LEFT(A1&A2,LEN(A1&A2)-1),{","," "}))
thanks for the reply. I have data in from A1 to A500......., and need that all split into separate rows.
 
Upvote 0
How about:

Code:
=TRANSPOSE(TEXTSPLIT(LEFT(CONCAT(A1:A500),LEN(CONCAT(A1:A500))-1),{","," "}))

Or, in light of the repeat:

Code:
=LET(cc,CONCAT(A1:A500),TRANSPOSE(TEXTSPLIT(LEFT(cc,LEN(cc)-1),{","," "})))
 
Upvote 0
Another option
Excel Formula:
=DROP(REDUCE("",A2:A500,LAMBDA(x,y,VSTACK(x,TEXTSPLIT(y,,{" ",","})))),1)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top