+ Reply to Thread
Results 1 to 3 of 3

How to convert a table (10 names X 12 months = 120 values) into 120 separate rows.

Hybrid View

davejones4 How to convert a table (10... 03-19-2013, 11:40 AM
Ron Coderre Re: How to convert a table... 03-19-2013, 12:07 PM
davejones4 Re: How to convert a table... 03-19-2013, 12:19 PM
  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to convert a table (10 names X 12 months = 120 values) into 120 separate rows.

    Hello,
    Apologies if this is naive but I'm trying to create a flatfile from a table. At the moment, I have a matrix 10 X12 (name by month) containing 120 values but I need a 1 X 120 matrix (or 3 X 120 allowing for name / month and value) to make the pivot table work. Any advice gratefully received. Thank you.
    Dave

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to convert a table (10 names X 12 months = 120 values) into 120 separate rows.

    If I understand you correctly, you have an 11 x 13 grid

    One row of 13 headings: Name, Jan, Feb....Dec
    One column of 10 names: Alpha, Bravo, Charlie...Juliet
    and numbers at the intersections of months and names

    If that's true...try this:
    • Type these keys: ALT D P
    • Select: Multiple consolidation ranges....Click: Next
    • Check: I will create page fields.........Click: Next
    • Select the grid cells...Click: Add.......Click: Next...Click: Finish

    On the pivot table page:
    • Drag Row off the Row Labels section
    • Drag Column off the Column Labels section
    • Double-click the only number in the resulting pivot table.

    The end result will have this structure:
    Row     Column      Value
    Alpha      Jan      399
    Alpha      Feb       32
    Alpha      Mar      468
    Alpha      Apr      283
    Alpha      May      632
    Alpha      Jun      457
    Alpha      Jul      240
    Alpha      Aug      874
    Alpha      Sep      941
    Alpha      Oct      369
    Alpha      Nov      994
    Alpha      Dec      856
    Bravo      Jan      757
    Bravo      Feb      994
    Bravo      Mar      324
    • Rename ROW to Name
    • Rename COLUMN to Month

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to convert a table (10 names X 12 months = 120 values) into 120 separate rows.

    Ron,
    You are a genius. That is brilliant. Would never have found that in a million years. This forum really works. Thank you. I appreciate it.
    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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