benjie1982
New Member
- Joined
- Apr 12, 2017
- Messages
- 9
Hi, I have some large spreadsheets of over 100k rows with a single sheet. Total number of columns varies
The first row is the header row, the first column contains a primary key ID.
I'm looking for a VBA code to split the data into separate workbooks (not sheets) grouped by the values in the first column.
e.g.
In the example i would end up with 3 workbooks called ID1, ID2 and ID3.
ID1 will have header row + the 2nd and 3rd rows having the value ID1.
ID2 will have header row + the 4th row having the value ID2
ID3 will have header row + the 5th row having the value ID3
If someone can help me out it would be very much appreciated. Thanks so much in advance.
The first row is the header row, the first column contains a primary key ID.
I'm looking for a VBA code to split the data into separate workbooks (not sheets) grouped by the values in the first column.
e.g.
Id | Column 1 | Column 2 | Column 3 | Column 4 | Column 5 |
ID1 | 28 | 16 | Home | A | |
ID1 | 185 | 22 | Home | B | |
ID2 | 48 | 48 | Business | C | |
ID3 | 8 | 6 | Business | D |
In the example i would end up with 3 workbooks called ID1, ID2 and ID3.
ID1 will have header row + the 2nd and 3rd rows having the value ID1.
ID2 will have header row + the 4th row having the value ID2
ID3 will have header row + the 5th row having the value ID3
If someone can help me out it would be very much appreciated. Thanks so much in advance.