Solved

Make Multiple Lines Into A CSV Format with Notepad ++

Posted on 2013-12-29
3
350 Views
Last Modified: 2014-01-01
I have about 3000 records in this format, I want to import them into Excel. I tried the Text To Columns but that didn't help. Using Notepad ++, or VBA, how can I make them in csv format?

Event Type: Birthday Party
State: CA
City: SAN DIAGO
Date: 12/31/2013
Name: JANE DOE
Email: JANE@DOE.NET
0
Comment
Question by:Computer Guy
3 Comments
 
LVL 10

Expert Comment

by:JEaston
ID: 39744985
If every record has the same 6 rows then in Notepad++ you can record a macro and then press and hold Ctrl + shift + P to play the macro until you reach the end of the file.

For me I did this (while macro is recording) by setting the cursor at the start of the file and pressed End, then comma then delete and repeated until the six lines were on one.  Then pressed left to go to the next line.  Then stop recording and press Ctrl + shift + P until the end of the file is reached.

If the records have a different number of lines then I will look at a VBA solution.
0
 
LVL 18

Expert Comment

by:Raheman M. Abdul
ID: 39744999
Send the resultant file (how you want to be) adding atleast 2 records in it.  I would like to know what is your requirement.
0
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
ID: 39745104
Test this sample. Open file, allow Macros and press button
ImportTextFile1.xlsm
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now