+ Reply to Thread
Results 1 to 2 of 2

Formatting table using VBA- Need help!

  1. #1
    Registered User
    Join Date
    06-17-2019
    Location
    California, United States
    MS-Off Ver
    10
    Posts
    1

    Formatting table using VBA- Need help!

    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-


    A A A A A B B B B B
    WEEK MON TUE WED THURS FRI MON TUE WED THURS FRI
    1 100 100 100 100 100 100 100 100 100 100
    2 150 150 150 150 150 150 150 150 150 150


    Desired Output-

    Biz Week Day Total
    A 1 MON 100
    A 1 TUE 100
    A 1 WED 100
    A 1 THURS 100
    A 1 FRI 100
    A 2 MON 150
    A 2 TUE 150
    A 2 WED 150
    A 2 THURS 150
    A 2 FRI 150
    B 1 MON 100
    B 1 TUE 100
    B 1 WED 100
    B 1 THURS 100
    B 1 FRI 100
    B 2 MON 150
    B 2 TUE 150
    B 2 WED 150
    B 2 THURS 150
    B 2 FRI 150

    Thanks in advance!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Formatting table using VBA- Need help!

    crossposted: https://www.ozgrid.com/forum/forum/h...mat-table-un-p

    https://www.mrexcel.com/forum/excel-...need-help.html

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Last edited by alansidman; 06-17-2019 at 05:48 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 12-01-2017, 03:45 PM
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  3. Replies: 9
    Last Post: 03-07-2016, 10:39 AM
  4. How to save custom table formatting as a Table Style
    By telework in forum Excel General
    Replies: 0
    Last Post: 09-26-2014, 11:22 PM
  5. Replies: 0
    Last Post: 09-12-2013, 05:21 AM
  6. Pivot Table graph looses formatting after running formatting macro
    By arthurbr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2011, 04:16 AM
  7. retain table formatting when writing excel table to a txt file
    By deanop in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-03-2005, 01:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1