Multiple Text to column delimeters

hcabs99

Active Member
Joined
May 9, 2006
Messages
257
Hi All

Am trying to build a tool which tidies up EANCOM messages (example below) and makes it easier for the end user to read

There is a number of different delimeters used in the file e.g.:

+ :


UNB+UNOC:3+KRAFTUK_KTEST:14+WHS_GB9C_TEST:14+110314:1238+000000004++++1++1'
UNH+000000004+PRODAT:D:96A:UN:EAN002'
BGM+11E:::Material master+201103141238+9'
DTM+137:201103141238:203'
NAD+MR+GB9C::91'


So.can i use text to columns to do multiple splits(number of columns it will produce will vary by message) or is there any VB code to perform the task?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I would use the macro recorder to walk through the steps you do in the clean up. Then after you finish recording, the macro can be cleaned up to make it generic and then you can use it each time that your data is refreshed.
 
Upvote 0

Forum statistics

Threads
1,224,589
Messages
6,179,744
Members
452,940
Latest member
rootytrip

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