Inserting new rows based on cell columns, copying data to the new rows

jgaite

New Member
Joined
Oct 13, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I hope someone can help me here. I have a file with multiple rows and columns.
If there's only 1 SKU purchased, line item would be as normal - Cell A2 onwards
But if for example cell A5, there's additional after column T since it has 2 SKU purchased.

I want to have a macro where when there's additional column after Column T, it will add new rows and copy the data above it. Please take note that it can be multiple SKU purchases and doesn't end with only 2 purchase per each line item.

Here's the sample data:
Sample data.JPG


And the should be data:

Should be data.JPG


Thank you so much in advance!

Joane
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Please consider using MrExcel's excellent add in called XL2BB to post the data. See here: XL2BB - Excel Range to BBCode

Maybe provide additional data to work with.

Are there headers for the additional SKUs like SKU 2 and Quantity 2? Is there a maximum number of SKUs?
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top