joeallenfm
New Member
- Joined
- Feb 10, 2023
- Messages
- 5
- Office Version
- 365
- Platform
- MacOS
Hi MrExcel board, first time poster in need...
I have 600k rows of data like this;
I would like to run a script to insert rows after each existing row where:
I have 600k rows of data like this;
CODE | Product | Quantity | CustomerID |
WMB0000025 | Medium Thing | 25 | x35904930 |
WMX0000240 | Small Thing | 25 | x49509600 |
WMB0000391 | Medium Thing | 25 | x39409510 |
I would like to run a script to insert rows after each existing row where:
- The number of rows inserted is taken from the quantity cell of the row triggering the insert minus 1.
- The Code of the inserted rows is the same as the code cell from the triggering row + 1 added the the numerical part of the code... e.g. the first two rows after the first example above would be WMB0000026 and WMB0000027.
- The Product and Customer ID are the same as the cells from the triggering row.
- The rows are inserted and do not overwrite any existing rows - so in example above the second row of data (WMX0000240) would still be there after the script had executed the first row of data's insert.
Last edited by a moderator: