Forgive me if I don't know what I'm talking about, I'm a newbie to Excel macros. I have a large spreadsheet with over 2,800 rows and 66 columns. The data is sorted thusly: Column A (major), column B, Column D (minor). I would like to have a macro that inserts 1 row when the data in column B changes and 2 rows when the data in column A changes.
For example:
A B C D ...
51 DOA 68 DIVISION ... 44130
52 DOA 68 DIVISION ... 46096
53 DOA 85 ASSET ... 40724
54 DOA 85 ASSET ... 47469
55 DOO 01 DISTRICT .... 30000
56 DOO 01 DISTRICT ... 30085
Should become:
A B C D ...
51 DOA 68 DIVISION ... 44130
52 DOA 68 DIVISION ... 46096
53
54 DOA 85 ASSET ... 40724
55 DOA 85 ASSET ... 47469
56
57
58 DOO 01 DISTRICT .... 30000
59 DOO 01 DISTRICT ... 30085
Thank you for any help you can give.
eicherj
EDIT - Deleted Personal Information - Moderator
I must be a trombone player. I'm always leading a parade whenever I drive on two lane roads and sometimes the drivers behind me blow their horns.
For example:
A B C D ...
51 DOA 68 DIVISION ... 44130
52 DOA 68 DIVISION ... 46096
53 DOA 85 ASSET ... 40724
54 DOA 85 ASSET ... 47469
55 DOO 01 DISTRICT .... 30000
56 DOO 01 DISTRICT ... 30085
Should become:
A B C D ...
51 DOA 68 DIVISION ... 44130
52 DOA 68 DIVISION ... 46096
53
54 DOA 85 ASSET ... 40724
55 DOA 85 ASSET ... 47469
56
57
58 DOO 01 DISTRICT .... 30000
59 DOO 01 DISTRICT ... 30085
Thank you for any help you can give.
eicherj
EDIT - Deleted Personal Information - Moderator
I must be a trombone player. I'm always leading a parade whenever I drive on two lane roads and sometimes the drivers behind me blow their horns.
Last edited by a moderator: