suntreemom
New Member
- Joined
- Dec 18, 2013
- Messages
- 3
Hi. I am not really a coder and this is new to me but I have an extremely large spreadsheet I need to disect into a seperate workbook for each set of data. While browsing on this forum I saw many references for splitting data, but it always split it due to a certain value in a column. My column the value is always unique, but the end of the section I need to split the data ends with [TABLE="width: 72"]
<tbody> [TR]
[TD]>end[/TD]
[/TR]
</tbody> <colgroup> <col></colgroup>[/TABLE]
For instance, I have 4 columns with no headers. Each value is different. It is set up like this:[TABLE="class: grid, width: 500"]
<tbody></tbody>[/TABLE]
[TABLE="class: grid, width: 303, align: center"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]ZAU6101G
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=986[/TD]
[TD]altmax=987[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667
[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ZAU6101H
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=988[/TD]
[TD]altmax=989[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ZAU6101I
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=990[/TD]
[TD]altmax=991
[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to read the value in each Column A cell (ZAU6101G), this will become the title of my new 'workbook' after being split out. I take all the rows beneath that leading column A cell, until I find a row with >end, and copy over to the new 'workbook' and save the new workbook with the cell A title.
From the table above it would split into three worksheets- titled ZAU6101G, ZAU6101H, and ZAU6101I. The first workshhet would look like this:
[TABLE="class: grid, width: 303, align: center"]
<tbody>[TR]
[TD]ZAU6101G
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=986[/TD]
[TD]altmax=987[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667
[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The second:
[TABLE="class: grid, width: 303, align: center"]
<tbody>[TR]
[TD]ZAU6101H
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=988[/TD]
[TD]altmax=989[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The third:
[TABLE="class: grid, width: 303, align: center"]
<tbody>[TR]
[TD]ZAU6101I
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=990[/TD]
[TD]altmax=991
[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have over 4,000 rows of data to split. Is this possible? Will excel only provide this functionality for so many rows, etc?
Thank you to anyone who can help!! I do not even know how to set up a VB script in excel so please explain like a book for dummies
Suntreemom
<tbody> [TR]
[TD]>end[/TD]
[/TR]
</tbody> <colgroup> <col></colgroup>[/TABLE]
For instance, I have 4 columns with no headers. Each value is different. It is set up like this:[TABLE="class: grid, width: 500"]
<tbody></tbody>[/TABLE]
[TABLE="class: grid, width: 303, align: center"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]ZAU6101G
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=986[/TD]
[TD]altmax=987[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667
[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ZAU6101H
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=988[/TD]
[TD]altmax=989[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ZAU6101I
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=990[/TD]
[TD]altmax=991
[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I need to read the value in each Column A cell (ZAU6101G), this will become the title of my new 'workbook' after being split out. I take all the rows beneath that leading column A cell, until I find a row with >end, and copy over to the new 'workbook' and save the new workbook with the cell A title.
From the table above it would split into three worksheets- titled ZAU6101G, ZAU6101H, and ZAU6101I. The first workshhet would look like this:
[TABLE="class: grid, width: 303, align: center"]
<tbody>[TR]
[TD]ZAU6101G
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=986[/TD]
[TD]altmax=987[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667
[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The second:
[TABLE="class: grid, width: 303, align: center"]
<tbody>[TR]
[TD]ZAU6101H
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=988[/TD]
[TD]altmax=989[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The third:
[TABLE="class: grid, width: 303, align: center"]
<tbody>[TR]
[TD]ZAU6101I
[/TD]
[TD]grp=ZAU61[/TD]
[TD]altmin=990[/TD]
[TD]altmax=991
[/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG31[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.716667[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG32[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.183333[/TD]
[TD]node=CG22[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]43.783333[/TD]
[TD="align: right"]272.116667[/TD]
[TD]node=CG21[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]>end[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I have over 4,000 rows of data to split. Is this possible? Will excel only provide this functionality for so many rows, etc?
Thank you to anyone who can help!! I do not even know how to set up a VB script in excel so please explain like a book for dummies
Suntreemom