mrmmickle1
Well-known Member
- Joined
- May 11, 2012
- Messages
- 2,461
I would like to group data based on blank cell values in column B. I want to group cells by counting up from the last active value in column B and then grouping the data below this blank cell. I would like for the groups to end up collapsed at the end of the macro. The data varies in length from day to day. Around 5000 rows. The groups would be based on customers. So a collapsed data set would be ideal. YOu could uncollapse/open them to view the detail. My data looks like this:
I would like the end result to look like this:
Excel 2010 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Code | Company Name | WO Number | WO Type | Ref Number | Tail Number | Status | ||
2 | AAR ACS-NY C/O AAR CORP | ||||||||
3 | AARAL | AAR ACS-NY C/O AAR CORP | U065907 | Internal | 311017816/9112547 | CLOSED | |||
4 | AARAL | AAR ACS-NY C/O AAR CORP | U067452-28 | Internal | 312001928/9115687 | Closed | |||
5 | AARAL | AAR ACS-NY C/O AAR CORP | U067452-2 | Internal | 312001928/9115687 | Closed | |||
6 | AARAL | AAR ACS-NY C/O AAR CORP | U065908 | Internal | 311017816/9112547 | CLOSED | |||
7 | AEROLINEAS ARGENTINAS | ||||||||
8 | AEARG | AEROLINEAS ARGENTINAS | U065467 | External | 31105356 | Closed | |||
9 | AEARG | AEROLINEAS ARGENTINAS | U066128 | External | 31105894 | Closed | |||
10 | AEARG | AEROLINEAS ARGENTINAS | U066127 | External | 31105893 | Closed | |||
11 | AEARG | AEROLINEAS ARGENTINAS | U065904 | External | 31105715 | Closed | |||
12 | USA JET AIRLINES, INC | ||||||||
13 | USAJE | USA JET AIRLINES, INC | AN20139 | External | R0066612 | Approved | |||
14 | USAJE | USA JET AIRLINES, INC | AN20436 | External | R0067550 | Quote | |||
15 | USAJE | USA JET AIRLINES, INC | AN20198 | External | R0066839 | Closed | |||
16 | USAJE | USA JET AIRLINES, INC | AN20087 | External | R0066419 | QC | |||
17 | USAJE | USA JET AIRLINES, INC | U065242 | External | R0064547 | Closed | |||
18 | PIEDMONT AIRLINES | ||||||||
19 | USPAI | PIEDMONT AIRLINES | MN50403 | External | 8320095018R | Closed | |||
20 | WERNER AERO SERVICES LLC | ||||||||
21 | WERNC | WERNER AERO SERVICES LLC | AN20373-9 | Internal | 19088 | Quote | |||
22 | WERNC | WERNER AERO SERVICES LLC | AN20373-11 | Internal | 19088 | QC | |||
Sheet2 |
I would like the end result to look like this:
Excel 2010 | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Code | Company Name | WO Number | WO Type | Ref Number | Tail Number | Status | ||
2 | AAR ACS-NY C/O AAR CORP | ||||||||
3 | AEROLINEAS ARGENTINAS | ||||||||
4 | USA JET AIRLINES, INC | ||||||||
5 | PIEDMONT AIRLINES | ||||||||
6 | WERNER AERO SERVICES LLC | ||||||||
Sheet2 |