Converting Month Data in Columns to Rows

dammwj

New Member
Joined
Jan 2, 2010
Messages
4
In the book Pivot Table Data Crunching, Mr. Jelen steps through a Case Study "Cleaning Up Data for Pivot Table Analysis". He points out that data presented in columns by month needs to be reformatted as two columns. He states "this step either requires a fair amount of copying and pasting, or a few lines of VBA code".

My question is: What are these few lines of code? I have budget data in an Excel sheet by month, and I would like to reformat this data into rows, with a separate record for each month.

I am sure this question has been asked and answered many times in this forum, but I can't find it. :( Many thanks for any help on this issue.

WJD
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Can you send me an e-mail with a sample of the data set? (Feel free to replace any real numbers with zero. I am only interested in the structure). I can write the VBA, post it here, and show it on a podcast.

Send to bill at MrExcel.com
 

Forum statistics

Threads
1,222,727
Messages
6,167,870
Members
452,151
Latest member
DolonG

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