Formatting table using VBA- Need help!

KK3008

New Member
Joined
May 8, 2019
Messages
8
Hi, I've been trying to get this done to analyze the data. However, I am unable to un-pivot this table. Could someone please guide me here?

Input table-

AAAAABBBBB
WEEKMONTUEWEDTHURSFRIMONTUEWEDTHURSFRI
1100100100100100100100100100100
2150150150150150150150150150150

<tbody>
</tbody>







Desired Output-

BusinessWeekDayTotal
A1MON100
A1TUE100
A1WED100
A1THURS100
A1FRI100
A2MON150
A2TUE150
A2WED150
A2THURS150
A2FRI150
B1MON100
B1TUE100
B1WED100
B1THURS100
B1FRI100
B2MON150
B2TUE150
B2WED150
B2THURS150
B2FRI150

<tbody>
</tbody>
































Thanks in advance!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
58,249
Office Version
  1. 365
Platform
  1. Windows
Cross-posted: https://www.ozgrid.com/forum/forum/...ros/1219363-vba-code-to-format-table-un-pivot

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules). This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 

Forum statistics

Threads
1,136,321
Messages
5,675,063
Members
419,548
Latest member
wfarzand

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
Top