Segmenting text in various columns

canadian86

Board Regular
Joined
Feb 6, 2011
Messages
53
hey guys,

I have this text in 3 rows in Google Sheets:

Are You Compelling - 133 Likes - 35 Comments - 3450 Views.mp4
Are You Excited - 193 Likes - 46 Comments - 5245 Views.mp4
Be The Promoter - 81 Likes - 59 Comments - 1168 Views.mp4

I want to output each row in different columns.

So, I want it to show:

Cell B1 = Are You Compelling
Cell B2 = 133 Likes
Cell B3 = 35 Comments
Cell B4 - 3450 Views

Any idea how I can achieve this?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi there,

I’m not on my laptop at the moment (using my phone), but I think there’s a function you can use on the Dat all’s tan called ‘Text to Columns’, it may just be a button. If you select that, then option ‘Delimited’ and define ‘-‘ (hyphen) as your character.

If you want to remove all the instances of ‘.mp4’. Highlight all and use the ‘Find & Replace’ function, enter ‘.mp4’ and leave the ‘Replace with’ field blank.

Good luck
 
Upvote 0
With formulas for all three:
segmenting-text-in-various-columns.1130375.xlsx
AB
1Are You Compelling - 133 Likes - 35 Comments - 3450 Views.mp4Are You Compelling
2133 Likes
335 Comments
43450 Views
5Are You Excited - 193 Likes - 46 Comments - 5245 Views.mp4Are You Excited
6193 Likes
746 Comments
85245 Views
9Be The Promoter - 81 Likes - 59 Comments - 1168 Views.mp4Be The Promoter
1081 Likes
1159 Comments
121168 Views
Sheet1 (3)
Cell Formulas
RangeFormula
B1B1=TRIM(LEFT($A$1,FIND("^",SUBSTITUTE($A$1,"-","^",1),1)-2))
B2B2=TRIM(MID($A$1,FIND("^",SUBSTITUTE($A$1,"-","^",1),1)+2,FIND("^",SUBSTITUTE($A$1,"-","^",2),1)-FIND("^",SUBSTITUTE($A$1,"-","^",1),1)-2))
B3B3=TRIM(MID($A$1,FIND("^",SUBSTITUTE($A$1,"-","^",2),1)+2,FIND("^",SUBSTITUTE($A$1,"-","^",3),1)-FIND("^",SUBSTITUTE($A$1,"-","^",2),1)-2))
B4B4=TRIM(MID($A$1,FIND("^",SUBSTITUTE($A$1,"-","^",3),1)+2,LEN(A1)-FIND("^",SUBSTITUTE($A$1,"-","^",3),1)-5))
B5B5=TRIM(LEFT($A$5,FIND("^",SUBSTITUTE($A$5,"-","^",1),1)-2))
B6B6=TRIM(MID($A$5,FIND("^",SUBSTITUTE($A$5,"-","^",1),1)+2,FIND("^",SUBSTITUTE($A$5,"-","^",2),1)-FIND("^",SUBSTITUTE($A$5,"-","^",1),1)-2))
B7B7=TRIM(MID($A$5,FIND("^",SUBSTITUTE($A$5,"-","^",2),1)+2,FIND("^",SUBSTITUTE($A$5,"-","^",3),1)-FIND("^",SUBSTITUTE($A$5,"-","^",2),1)-2))
B8B8=TRIM(MID($A$5,FIND("^",SUBSTITUTE($A$5,"-","^",3),1)+2,LEN($A$5)-FIND("^",SUBSTITUTE($A$5,"-","^",3),1)-5))
B9B9=TRIM(LEFT($A$9,FIND("^",SUBSTITUTE($A$9,"-","^",1),1)-2))
B10B10=TRIM(MID($A$9,FIND("^",SUBSTITUTE($A$9,"-","^",1),1)+2,FIND("^",SUBSTITUTE($A$9,"-","^",2),1)-FIND("^",SUBSTITUTE($A$9,"-","^",1),1)-2))
B11B11=TRIM(MID($A$9,FIND("^",SUBSTITUTE($A$9,"-","^",2),1)+2,FIND("^",SUBSTITUTE($A$9,"-","^",3),1)-FIND("^",SUBSTITUTE($A$9,"-","^",2),1)-2))
B12B12=TRIM(MID($A$9,FIND("^",SUBSTITUTE($A$9,"-","^",3),1)+2,LEN($A$9)-FIND("^",SUBSTITUTE($A$9,"-","^",3),1)-5))
 
Upvote 0

Forum statistics

Threads
1,223,661
Messages
6,173,647
Members
452,525
Latest member
DPOLKADOT

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