Splitting text to rows with any deliminator within a line of data

ace19852

Active Member
Joined
Feb 26, 2010
Messages
471
I pretty much a novice and have recieved alot of help from u guys.

So if I can help any1 with this even though no1 has asked for it !

Anyway I wrote what is a relatively simple macro. I realised that text to columns was great but there wasn't an equivalent text to rows. Ok I deal at work with an vehicle application database and all the time we get compressed data i.e. where say the engine type is the only difference between vehicle descriptions and e.g. say it's like DA, DB, DD, DE etc. So in our data we want that single line split into four line showing DA on the 1st line DB on the 2nd and so on.

All you do is make a move of the column with the compressed data in it to column A the macro asks you for the deliminator u hit the go button watch the macro generate all the addition lines and move column A back to its original position - Job done.

If any1 is interested I'll happierly sent the macro file

Cheers and Merry Xmas - Ace
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,225,533
Messages
6,185,499
Members
453,298
Latest member
Adam1258

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