Text to columns for a large amount of data

daniejm

New Member
Joined
Sep 26, 2013
Messages
11
Hi there,

Thank you in advance for your assistance. I'm a bit of an Excel novice.

I've been given the task of splitting up a large amount of delimiter-separated values that need separating. Unfortunately, the list was provided to me in a Word document and all the data is lumped together (all 246 pages worth - 16k records total).

I can "chunk" the data up for copying / pasting to Excel, use Text To Columns and then splice all the information back together into one list, but that would be a laborious task. I'm hoping there's a VBA code that can be used to make this operation simpler and quicker.

Here's a mocked-up example of the data of how the data was given to me:

John Smith "johnsmith@johnsmith.com"<johnsmith@johnsmith.com>; Jane Smith "janesmith@janesmith.com"<janesmith@janesmith.com>; John Doe "johndoe@johndoe.com"<johndoe@johndoe.com>; Jane Doe "janedoe@janedoe.com"<janedoe@janedoe.com>;

I'd like to use the semi-colon as the seperator and place each record on its own row. The end result would look something like this:

John Smith <johnsmith@johnsmith.com>"johnsmith@johnsmith.com";
Jane Smith <janesmith@janesmith.com>"janesmith@janesmith.com";
John Doe "<johndoe@johndoe.com>johndoe@johndoe.com";
Jane Doe "<janedoe@janedoe.com>janedoe@janedoe.com";

Is it possible, doctor? My weekend would be grateful if it were. :)

Thanks,

Joe</janedoe@janedoe.com></johndoe@johndoe.com></janesmith@janesmith.com></johnsmith@johnsmith.com></janedoe@janedoe.com></johndoe@johndoe.com></janesmith@janesmith.com></johnsmith@johnsmith.com>
 
Last edited:

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Open word, go to replace, Replace ; with ; ^l this should put all the email addresses on a new line. Save it as a .txt. Open it with excel and do delimited with semicolon as the delimiter and it should all be in rows.
 
Upvote 0
Open word, go to replace, Replace ; with ; ^l this should put all the email addresses on a new line. Save it as a .txt. Open it with excel and do delimited with semicolon as the delimiter and it should all be in rows.

What an easy, effective, and simple trick. Not one I knew of.

Thank you so much, thatoneguy.
 
Upvote 0

Forum statistics

Threads
1,215,020
Messages
6,122,709
Members
449,093
Latest member
Mnur

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