The easiest way is going to be with a macro. Here's the code:
You'll need to insert this permanently into a workbook.
How to use the macro:
1. Open up your workbook
2. Get into VB Editor (Press Alt+F11)
3. Insert a new module (Insert > Module)
4. Copy and Paste in your code (given above)
5. Get out of VBA (Press Alt+Q)
6. Save your sheet
The macro is installed and ready to use.
First, bring up your CSV file so that it is onscreen, then press Alt-F8 and select this macro from the list.
It will create a worksheet called NewTable and put the data in the format you want. You can move the resulting sheet elsewhere or to another book, up to you.
Bookmarks