Parsing CSV Data into Individual Tables

Comp_c4

New Member
Joined
Jul 25, 2013
Messages
3
My data is from a CSV that dumps into one giant excel table. There are ~100 tables that I need to break into individual tabs & tables in a workbook. Once this is done, I can analyze and adjust the data. I will then need to recombine the data back into one giant excel table to resave as a CSV for import.

I'm stuck parsing the data into individual tabs/ tables....Help! Suggestions welcome!

The data is formatted as shown below:
  • File_Info isn't really a table as it has basic file info
  • The Data is formatted as Long Text currently
  • Since the data comes from one giant table, there can be null data in the table headings and table data
    • i.e. the individual tables once parsed are different sizes.

File Info_1File Info_2File Info_3File Info_N
Table_1nullnullnull
Table_1 HeadingsTable_1 Heading_1Table_1 Heading_2Table_1 Heading_N
Table_1 Data_Row_1Table_1 DataTable_1 DataTable_1 Data
Table_1 Data_Row_2Table_1 DataTable_1 DataTable_1 Data
Table_1 Data_Row_NTable_1 DataTable_1 DataTable_1 Data
Table_2nullnullnull
Table_2 HeadingsTable_2 Heading_1Table_2 Heading_2Table_2 Heading_N
Table_2 Data_Row_1Table_2 DataTable_2 DataTable_2 Data
Table_2 Data_Row_2Table_2 DataTable_2 DataTable_2 Data
Table_2 Data_Row_NTable_2 DataTable_2 DataTable_2 Data
Table_Nnullnullnull
Table_N HeadingsTable_N Heading_1Table_N Heading_2Table_N Heading_N
Table_N Data_Row_1Table_N DataTable_N DataTable_N Data
Table_N Data_Row_2Table_N DataTable_N DataTable_N Data
Table_N Data_Row_NTable_N DataTable_N DataTable_N Data
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I've tried to give a more detailed response, but the coffee isn't producing results just yet.

However, I would use helper columns to identify where the table changes occur, else null. Then fill them down, they will fill down to the next non null table change.
Filter to a single table name in this new helper column.
Remove helper column
Filter out table name row
Promote Table_X Headings to Headers (they should be in row 1 at this point)
Adjust/augment as needed
Repeat
 
Upvote 0
I've tried to give a more detailed response, but the coffee isn't producing results just yet.

However, I would use helper columns to identify where the table changes occur, else null. Then fill them down, they will fill down to the next non null table change.
Filter to a single table name in this new helper column.
Remove helper column
Filter out table name row
Promote Table_X Headings to Headers (they should be in row 1 at this point)
Adjust/augment as needed
Repeat
Not entirely sure I follow all your method, but it starts with what I currently do: helper columns followed by a very manual effort. I am looking to find a more automated method of parsing the tables into tabs given there are so many of them. If it helps for context, the data is from a Primavera P6 file.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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