We help IT Professionals succeed at work.
Get Started

Parse A Text File Into An Excel Spreadsheet

Last Modified: 2014-01-04
Please help anyone.  I have a text file that is over 6MB and has proven to be quite difficult to parse.  It does not have the same format throughout but is close.  The beginning column header is "NSN:" and everything following this should remain on the same row.  The next row should start at the next instance of the word "NSN:" I have been trying over and over to figure this out but to no avail.  I have to get this out to my company sometimes tomorrow if anyone can help me out.  I am a total newbie at a scripting and this is a first for me.  Please help, anyone! I have provided a portion of the text file that needs to be parsed as well as the VBA script I have so far.  I am almost certain that there is a better way to do this.  Thanks in advance for all of the help!
Watch Question
This problem has been solved!
Unlock 4 Answers and 25 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE