How do I combine multiple rows of data into one row?

sdorn

New Member
Joined
Jan 8, 2011
Messages
2
I am trying to create a product SKU sales report with 6-years of product SKU sales data on a single row. Unfortunately the export from our database only exports 2 year periods per row. I have manually created header rows, and moved the data to the appropriate column. However I am left with three rows of information to work with. Is there a formula to combine the 3 rows into one row and to sum the data in the 6 columns? An example is below.

Col1, Col2, Col3, Col4, Col5, Col6, Col7
SKU, 2010, 2009, 2008, 2007, 2006, 2005
Item#1, 25, 22, , , , ,
Item#1, , , 20, 15, , ,
Item#1, , , , , 35, 40
The Product Sales data is in the appropriate column already.

I would like it to appear in one row as:
Item#1, 25, 22, 20, 15, 35, 40

Any suggestions?:confused:
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
'COLUMNS TO ROWS
Here's a macro for merging rows of data to one row matching for column A.
There's a sample workbook at the top of that page to help you test this, but the Part 3 macro is designed specifically to do this very thing. Give it a try.
 
Upvote 0
That worked great. Thank you for the Macro and Samples. Saved a tremendous amount of time! :biggrin:
 
Upvote 0

Forum statistics

Threads
1,215,601
Messages
6,125,763
Members
449,259
Latest member
rehanahmadawan

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