+ Reply to Thread
Results 1 to 5 of 5

Macros to change cross tab to flat list table

  1. #1
    Registered User
    Join Date
    03-14-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Post Macros to change cross tab to flat list table

    Hi,

    Every week I get a data extract that shows the data in a cross tab format. What I need is to get it into a flat list so that I can pivot it. I'd like one column for the "Week Commencing" and one column for the "forecast" (see attached file). I've tried to run a macros but it get really messy (I'm new to vba). It's quite a large dataset so cutting and pasting won't work. I've attached the file for reference. Appreciate any help.

    Cheers,
    John
    Attached Files Attached Files
    Last edited by jtd84; 08-15-2011 at 08:27 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Macros to change cross tab to flat list table

    Hi jtd84,

    Run this macro on your crosstab table (only once) and see if it puts it in a "flat" table format for you.

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macros to change cross tab to flat list table

    hi, jtd84, please check attachment, run code "test"
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-14-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Macros to change cross tab to flat list table

    thanks for your help guys, worked just how the way i wanted.

    Cheers,
    John

  5. #5
    Registered User
    Join Date
    10-05-2012
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Macros to change cross tab to flat list table

    Hello guys, I see that John was trying to gain help on the layout of the file.

    I wondered if someone can review this code and let me know how I can get the output to include all of my dimensions (4).

    See attached file! I gained a great working code for a single dimension, but need to be able to copy multiple dimensions.

    I am trying to get the data to look like so;

    unit acco dim1 pdef sotramount
    11011 500000 101 1301 1.00
    11011 500000 101 1302 2.00
    11011 500000 101 1303 3.00
    11011 500000 101 1304 4.00
    11011 500000 101 1305 5.00
    11011 500000 101 1306 6.00
    11011 500000 101 1307 7.00
    11011 500000 101 1308 8.00
    11011 500000 101 1309 9.00
    11011 500000 101 1310 10.00
    11011 500000 101 1311 11.00
    11011 500000 101 1312 12.00
    11012 500001 205 1301 0.00
    11012 500001 205 1302 0.10
    11012 500001 205 1303 0.00
    11012 500001 205 1304 0.00
    11012 500001 205 1305 0.00
    11012 500001 205 1306 0.00
    11012 500001 205 1307 0.00
    11012 500001 205 1308 0.00
    11012 500001 205 1309 0.00
    11012 500001 205 1310 0.00
    11012 500001 205 1311 0.00
    11012 500001 205 1312 0.00


    I greatly appreciate your help!

    Mark
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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