macro for importing txt using data formating

Deek45

New Member
Joined
Aug 7, 2010
Messages
21
I have already posted this yesterday under a different title so let me apologize for that in advance. The reason for reposting is that the problem has evolved a little and looking to get a solution tonight if possible.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
I have approximately 10,000 or so lines of raw data in a txt file that I have to mine through and need a way to organize it into excel to make it manageable.
<o:p></o:p>
The raw data format is as follows:
<o:p></o:p>
AA/05-27-070-05W4/0 CVE FCCL C5 FISHER 5-27-70-5 0388819 A08C Savanna Drilling Corp. 447 28-Feb-2011 09:51:00 AM Bonnyville A2EZ Cenovus FCCL Ltd. 667.29 Re-entry <o:p></o:p>

I would need the data to be organized in this format in excel:<o:p></o:p>

A: AA/05-27-070-05W4/0 (this data column always structured the same and always ending in /0)<o:p></o:p>

B: CVE FCCL C5 FISHER 5-27-70-5 (this one will always end with a "-" and a number)<o:p></o:p>

C: 0388819 (always a 7 digit number)<o:p></o:p>

D:A08C (this is always 4 characters made up of numbers and letters)<o:p></o:p>

E:Savanna Drilling Corp. (always a company name)<o:p></o:p>

F:447 (this could either be a number or a combination of letters and numbers)<o:p></o:p>

G:28-Feb-2011 09:51:00 AM (always a date and time)<o:p></o:p>

H:Bonnyville (always a location)<o:p></o:p>

I:A2EZ (this is always 4 characters made up of numbers and letters)<o:p></o:p>

J:Cenovus FCCL Ltd. (always a company name)<o:p></o:p>

K:667.29 (this number is not on very many lines of data)<o:p></o:p>

L:Re-entry (this column is going to be one of 5 activities.<o:p></o:p>

Any help would be very much appreciated.<o:p></o:p>
Thank you.<o:p></o:p>
<o:p></o:p>
 
Last edited:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,224,609
Messages
6,179,874
Members
452,949
Latest member
Dupuhini

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