+ Reply to Thread
Results 1 to 4 of 4

Stacking an array of columns of data with a header

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Stacking an array of columns of data with a header

    Hello,

    I have an array of columns of varying length. Each column has a header. In order to facilitate analysing the data I need to stack up those columns so that the header appears in column 1 and the data under the header appears in column 2. The header needs to repeat on every line. Here's what I mean:

    I have:
    Result A Result B Result C
    753 7354 5529
    1071 2415
    3054
    6832

    And I need to convert it to:
    Result A 753
    Result B 7354
    Result B 1071
    Result B 3054
    Result B 6832
    Result C 5529
    Result C 2415

    In my real example I have 160+ columns and up to 466 rows so an automated solution would be really handy!
    thanks for your ideas
    Mx

  2. #2
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Stacking an array of columns of data with a header

    Hi,

    See the file. Orange cells are data, green cells are helper cell and yellow is output with formula.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-27-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Stacking an array of columns of data with a header

    Brilliant!
    I do not understand how it works, but it does the job,

    For those of you who looked but didn't download the file, misrasomendra used some clever INDEX and MATCH functions in an array formula

    thank you very much :-)

  4. #4
    Valued Forum Contributor
    Join Date
    04-09-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Stacking an array of columns of data with a header

    Hi,

    Thanks for the feedback and kind words. If your problem is solved you can mark the thread as SOLVED and if you feel the solution had helped you can donate some reps points by clicking on the star of ADD REPUTATION under my comments.

+ 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. Taking data in rows and stacking into columns
    By jcoe in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-22-2013, 05:50 AM
  2. [SOLVED] Stacking Columns in Excel
    By ssanjju in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2013, 11:12 PM
  3. Replies: 2
    Last Post: 10-13-2012, 03:30 AM
  4. Stacking many columns into one
    By pickslides in forum Excel General
    Replies: 2
    Last Post: 01-08-2012, 08:04 PM
  5. Need Urgent Help on Stacking Columns in Excel
    By mablelim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-13-2011, 02:25 AM

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