Rearranging data base

az365

New Member
Joined
Aug 12, 2018
Messages
5
Hi Guys,

Anyone can come up with an VBA which can help to rearranging database?

Please refer to the following.

Original:

Row LabelsSum of HG658 VDSL - iiNetSum of VR1600v (FTTN)
Jan-1711000
Feb-171020
Mar-171440
Apr-177560
May-1710500
Jun-17960
Jul-1700
Aug-17801108
Sep-1756780
Oct-178640
Nov-17201700
Dec-1707120
Jan-180796
Feb-180707
Mar-180114
Apr-18011251
May-1801279
Jun-1801337
Jul-1801416
Aug-180650
Sep-1800
Oct-1800
Nov-1800
Dec-1800

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Desire:

Sum of HG658 VDSL - iiNetJan-171100
Sum of HG658 VDSL - iiNetFeb-171032
Sum of HG658 VDSL - iiNetMar-171454
Sum of HG658 VDSL - iiNetApr-17756
Sum of HG658 VDSL - iiNetMay-171050
Sum of HG658 VDSL - iiNetJun-1796
Sum of HG658 VDSL - iiNetJul-170
Sum of HG658 VDSL - iiNetAug-17840
Sum of HG658 VDSL - iiNetSep-17576
Sum of HG658 VDSL - iiNetOct-17864
Sum of HG658 VDSL - iiNetNov-17720
Sum of HG658 VDSL - iiNetDec-170
Sum of HG658 VDSL - iiNetJan-180
Sum of HG658 VDSL - iiNetFeb-180
Sum of HG658 VDSL - iiNetMar-180
Sum of HG658 VDSL - iiNetApr-180
Sum of HG658 VDSL - iiNetMay-180
Sum of HG658 VDSL - iiNetJun-180
Sum of HG658 VDSL - iiNetJul-180
Sum of HG658 VDSL - iiNetAug-180
Sum of HG658 VDSL - iiNetSep-180
Sum of HG658 VDSL - iiNetOct-180
Sum of HG658 VDSL - iiNetNov-180
Sum of HG658 VDSL - iiNetDec-180
Sum of VR1600v (FTTN)Jan-170
Sum of VR1600v (FTTN)Feb-170
Sum of VR1600v (FTTN)Mar-170
Sum of VR1600v (FTTN)Apr-170
Sum of VR1600v (FTTN)May-170
Sum of VR1600v (FTTN)Jun-170
Sum of VR1600v (FTTN)Jul-170
Sum of VR1600v (FTTN)Aug-1711208
Sum of VR1600v (FTTN)Sep-177680
Sum of VR1600v (FTTN)Oct-170
Sum of VR1600v (FTTN)Nov-1710700
Sum of VR1600v (FTTN)Dec-177120
Sum of VR1600v (FTTN)Jan-18796
Sum of VR1600v (FTTN)Feb-187707
Sum of VR1600v (FTTN)Mar-1811104
Sum of VR1600v (FTTN)Apr-1811251
Sum of VR1600v (FTTN)May-1812079
Sum of VR1600v (FTTN)Jun-1813317
Sum of VR1600v (FTTN)Jul-1814816
Sum of VR1600v (FTTN)Aug-186504
Sum of VR1600v (FTTN)Sep-180
Sum of VR1600v (FTTN)Oct-180
Sum of VR1600v (FTTN)Nov-180
Sum of VR1600v (FTTN)Dec-180

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Basically

1. Put header in front of the date column.
2. Copy and paste the corresponding amount to the third column.

This case I show is simplified case. I have 50+ column I need to rearrange to this format.

I am thinking there will be some kind of VBA to loop through the process.

Much appreciate the help.

Logit I know you are here to help.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
You can actually do that without code using a consolidation range pivot table. I’ll dig out the instructions.
 
Upvote 0

Forum statistics

Threads
1,215,487
Messages
6,125,086
Members
449,206
Latest member
ralemanygarcia

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