move column data to different row

duwell81

New Member
Joined
Jul 22, 2011
Messages
11
I have a spreadsheet with rows of product data with header rows above the data throughout the worksheet that highlights the machines or printers my products are used in.
the machine headers are in column 1 with all other columns blank
the product data or printing supplies that go in the machine are listed underneath the machine header starting in column 1 and cover 6 to 7 other pieces of data in the columns 2 to 7
I want to take the Machine headers in Column 1 and move them to column 8 in the row below next to the first product and copy and paste the header into all the other column 8 rows that these machines go with.
Until the next Machine Header is found in column one (all other columns blank)
Secondly I want to erase the row that the Machine Header row was in after it is moved next to all the products it goes with. This will allow me sort the database more efficiently

ex.
Before Look
C1
Machine Header1
Product1........Column7
Product2........Column7
Product3.........Column7
Machine Header2
Product1........Column7
Product2........Column7
After Look

Product1........Column7 Machine1
Product2........Column7 Machine1
Product3.........Column7 Machine1
Product1........Column7 Machine2
Product2........Column7 ''
and so on.
Thanks,
Wayne
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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