copy rows based on input in columns

ssuzzie

New Member
Joined
Aug 29, 2018
Messages
6
Hello,
I have a below table:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Month x[/TD]
[TD]MONTH x+1[/TD]
[TD]Volume month x[/TD]
[TD]Volume month x+1[/TD]
[/TR]
[TR]
[TD]PRODUCT 1[/TD]
[TD]7[/TD]
[TD]8[/TD]
[TD]100[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I would like to convert it to the following:

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Month[/TD]
[TD]Volume[/TD]
[/TR]
[TR]
[TD]PRODUCT 1[/TD]
[TD]7[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]PRODUCT 1[/TD]
[TD]8[/TD]
[TD]50[/TD]
[/TR]
</tbody>[/TABLE]

Is there any easy way to do this?

Thanks a lot
 
Hi Joe, Thanks a lot! Indeed I changed sheets names and adjusted column numbers, it is working perfectly now!:):):):)
 
Upvote 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You are welcome.
Glad it worked out!
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,314
Members
452,634
Latest member
cpostell

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