Is there a way to duplicate a line based on a value in one of the cells? For example: in columns A through C I have the data that I'd like to duplicate, and in column D I have the number for how many times I'd like to duplicate it. Below is an image of my beginning data.
And here is what I'm trying to achieve..
To complicate things a bit more, would there be a way to account for the original line as one of the duplicates? So if it's showing 2 in column D, there should only be 2 total lines for that given line.
This will be part of a macro, so I can always use the VBA coding that I can plug into it.
Links to images above..
Example 1
https://www.flickr.com/gp/161445705@N05/PpBt9v
Example 2
https://www.flickr.com/gp/161445705@N05/5p4sLg
And here is what I'm trying to achieve..
To complicate things a bit more, would there be a way to account for the original line as one of the duplicates? So if it's showing 2 in column D, there should only be 2 total lines for that given line.
This will be part of a macro, so I can always use the VBA coding that I can plug into it.
Links to images above..
Example 1
https://www.flickr.com/gp/161445705@N05/PpBt9v
Example 2
https://www.flickr.com/gp/161445705@N05/5p4sLg
Last edited by a moderator: