Stephen_IV
Well-known Member
- Joined
- Mar 17, 2003
- Messages
- 1,174
- Office Version
- 365
- 2019
- Platform
- Windows
I have data below that if there is data in Column C, I need to make a new line so that there are 2 columns worth of data.
From this:
To This:
From this:
VBA Disipline Make 1 Column with Pri and Sec Sanctions.xlsm | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | SCHOOLID | SANCTION_TYPE_1 | SANCTION_TYPE_SECONDARY | ||
2 | 150211 | 1071 | |||
3 | 154011 | 1065 | |||
4 | 154011 | 1020 | 1000 | ||
5 | 154011 | 1090 | |||
6 | 154011 | 1071 | |||
7 | 150211 | 1078 | |||
8 | 150211 | 1070 | |||
9 | 154011 | 1054 | |||
10 | 150211 | 1020 | |||
11 | 150211 | 1070 | |||
12 | 154011 | 1061 | |||
13 | 150211 | 1010 | |||
14 | 154011 | 1070 | |||
15 | 154011 | 1076 | |||
16 | 154011 | 1070 | |||
17 | 154011 | 1076 | |||
18 | 154011 | 1076 | |||
19 | 154011 | 1065 | 1000 | ||
Sheet2 |
To This:
VBA Disipline Make 1 Column with Pri and Sec Sanctions.xlsm | ||||
---|---|---|---|---|
G | H | |||
1 | SCHOOLID | SANCTION | ||
2 | 150211 | 1071 | ||
3 | 154011 | 1065 | ||
4 | 154011 | 1020 | ||
5 | 154011 | 1000 | ||
6 | 154011 | 1090 | ||
7 | 154011 | 1071 | ||
8 | 150211 | 1078 | ||
9 | 150211 | 1070 | ||
10 | 154011 | 1054 | ||
11 | 150211 | 1020 | ||
12 | 150211 | 1070 | ||
13 | 154011 | 1061 | ||
14 | 150211 | 1010 | ||
15 | 154011 | 1070 | ||
16 | 154011 | 1076 | ||
17 | 154011 | 1070 | ||
18 | 154011 | 1076 | ||
19 | 154011 | 1076 | ||
20 | 154011 | 1065 | ||
21 | 154011 | 1000 | ||
Sheet2 |