Transposing Data

bolandd

Board Regular
Joined
Aug 17, 2009
Messages
60
First off, I am fairly proficient with Excel and VBA.

I would like to take some existing data and transpose it via VBA.

sample.jpg


The end result would be:

Duck Donald 01/04/2011 1.25
Duck Donald 01/05/2011 .25
Duck Donald 01/10/2011 .5
Mouse Mickey 01/11/2011 1.75
Mouse Mickey 01/12/2011 1.75
Disney Walt 01/03/2011 1.25
Disney Walt 01/05/2011 .75
Disney Walt 01/10/2011 1.5

Thanks in advance...
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
First off, I am fairly proficient with Excel and VBA.
Since you say you are fairly proficient in VBA, I'll just try pointing you in the correct direction.

Loop through your date range (two loops, columns and rows).
If there is a non-zero entry in the cell, write the values from columns A and B and the corresponding column header to a new row (probably on a new worksheet). Continue on for the rest of the columns, then the rest of the rows.

Why don't you see how far you can get with it, and post back here if/when you run into specific problems?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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