table transpose help

josh_m

Board Regular
Joined
Mar 26, 2009
Messages
81
i have a report that is getting to wide in excel to be manageable. it is a "punch-list" of sorts that lists known issues with various stores. it lists 10 issues per location, and each issue has 4 columns associated with it, so I am now 40+ columns wide.
if anyone could help with a macro that could rearrange this report, it would save me a lot of copy/paste time.

additional notes: when the report is exported to excel, it is the only active sheet in the workbook. i guess the code would need to insert sheet 2 and paste the data there

thanks a lot for any help you can give

It basically looks like this:
HTML:
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}


storeCityStatetypedateissue #1quantity #1resolution #1ordered #1issue #2quantity #2resolution #2ordered #2REPEATING ALL THE WAY TO #10issue #10quantity #10resolution #10ordered #10aknoxvilletnlarge1/1/12             bhoustontxsmall1/2/12             cmiamiflmedium1/3/12             dromegasmall1/4/12

i would like to get it to look like this to be readable on the screen and where it can print nicely
HTML:
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}


storeCityStatetypedateissuequantityresolutionorderedaknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    aknoxvilletnlarge1/1/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12    bhoustontxsmall1/2/12
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
to clarify, this is what it looks like...

[TABLE="width: 1374"]
<tbody>[TR]
[TD]store[/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]type[/TD]
[TD]date[/TD]
[TD]issue #1[/TD]
[TD]quantity #1[/TD]
[TD]resolution #1[/TD]
[TD]ordered #1[/TD]
[TD]issue #2[/TD]
[TD]quantity #2[/TD]
[TD]resolution #2[/TD]
[TD]ordered #2[/TD]
[TD]REPEATING ALL THE WAY TO #10[/TD]
[TD]issue #10[/TD]
[TD]quantity #10[/TD]
[TD]resolution #10[/TD]
[TD]ordered #10[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]c[/TD]
[TD]miami[/TD]
[TD]fl[/TD]
[TD]medium[/TD]
[TD="align: right"]1/3/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]d[/TD]
[TD]rome[/TD]
[TD]ga[/TD]
[TD]small[/TD]
[TD="align: right"]1/4/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

this is how i would like it to look...
[TABLE="width: 692"]
<tbody>[TR]
[TD]store[/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]type[/TD]
[TD]date[/TD]
[TD]issue[/TD]
[TD]quantity[/TD]
[TD]resolution[/TD]
[TD]ordered[/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]a[/TD]
[TD]knoxville[/TD]
[TD]tn[/TD]
[TD]large[/TD]
[TD="align: right"]1/1/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]b[/TD]
[TD]houston[/TD]
[TD]tx[/TD]
[TD]small[/TD]
[TD="align: right"]1/2/12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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