Split Text List Into Individual Cells

DougStroud

Well-known Member
Joined
Aug 16, 2005
Messages
2,976
Office Version
  1. 365
Platform
  1. MacOS
I have a text list copied from the clipboard that pasted everything into one cell. I would like to split the individual records into their own cells, in the column. The records are separated by a comma. Here is a short example of the text list:

0025_Billette_John_Wedding__S516914, 0029_Billette_John_Wedding__S516940, 0041_Billette_John_Wedding__S528265



Thanks for the help!
 
You're welcome.

I suppose you no longer need an updated formula to separate the text string down Column.
If you still want it, post back.

If you have one, and it is not too much of an inconvenience I would like to use it. It would save a little time....

Thank you
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Note that if you goal is to automate the process, you can easily do the Text to Columns with a Macro.
Just turn on the Macro Recorder and record yourself doing the Text to Columns manually, and you will have recorded the code to perform this action via Macro.
 
Upvote 0
If you have one, and it is not too much of an inconvenience I would like to use it. It would save a little time....

Thank you

Hopefully this can handle your Long text strings, formula copied down (and across) as needed:


Book1
AB
10025_Billette_John_Wedding__S516914, 0029_Billette_John_Wedding__S516940, 0041_Billette_John_Wedding__S528265Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510499, Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510500, Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510505A, Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510512
20025_Billette_John_Wedding__S516914Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510499
30029_Billette_John_Wedding__S516940Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510500
40041_Billette_John_Wedding__S528265Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510505A
5Nathaniel_Sommer_Shalett_Bar_Mitzvah_S510512
Sheet124
Cell Formulas
RangeFormula
A2=TRIM(MID(SUBSTITUTE(A$1,",",REPT(" ",LEN(A$1))),ROWS(A$2:A2)*LEN(A$1)-LEN(A$1)+1,LEN(A$1)))
 
Upvote 0

That shouldn't happen, did you change something within my formula?
If you change the Cell reference of the Target Cell, that's fine, but the part in Red below should be "Formula Cell (with absolute reference for Row $):Formula Cell (no absolute reference).

=TRIM(MID(SUBSTITUTE(A$1,",",REPT(" ",LEN(A$1))),ROWS(A$2:A2)*LEN(A$1)-LEN(A$1)+1,LEN(A$1)))

or show a sample string where you're getting #VALUE error and tell me what Cell it's in.
 
Upvote 0
I will test it with the formula in your last post- but no, I did not change a thing. Copied/pasted in A2
 
Upvote 0
I think perhaps you posted the wrong link or uploaded the wrong image.

Please re-upload image and provide link, or upload just a sample file (that my formula isn't working) to Dropbox.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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