+ Reply to Thread
Results 1 to 4 of 4

Transpose and Pivot data for a list from columns

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96

    Transpose and Pivot data for a list from columns

    Hello,

    I have a survey out on surveymonkey and the results are sent to me in the format like in the "Master" tab of the attached document (column A - AI)

    What I want to do is take these responses, and transpose them into a nice list like in the "List" tab. What I've done is ran a logical test in columns AJ and AK of the responses in the "Master" tab and use these two to anchor my list in the "List" tab.

    One tricky nuance, the McKinney option allows the user to select two responses so I don't get a distinct list!

    Any advise here?

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Transpose and Pivot data for a list from columns

    Maybe something like this:

    In a2: =IF(MASTER!A3="","",MASTER!A3)

    In B2 =IF($A2="","",LOOKUP(2,1/(MASTER!C3:J3<>""),MASTER!$C$2:$J$2))


    In C2: either:

    =IF(A2="","",MID(TRIM(SUBSTITUTE(LOOKUP(2,1/(MASTER!J3:AI3<>""),MASTER!$J$2:$AI$2),B2,"")),3,255))

    or

    =IF(A2="","",LOOKUP(2,1/(MASTER!J3:AI3<>""),MASTER!$J$2:$AI$2))

    depending on which you prefer.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-29-2012
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    96
    Quote Originally Posted by Glenn Kennedy View Post
    Maybe something like this:

    In a2: =IF(MASTER!A3="","",MASTER!A3)

    In B2 =IF($A2="","",LOOKUP(2,1/(MASTER!C3:J3<>""),MASTER!$C$2:$J$2))


    In C2: either:

    =IF(A2="","",MID(TRIM(SUBSTITUTE(LOOKUP(2,1/(MASTER!J3:AI3<>""),MASTER!$J$2:$AI$2),B2,"")),3,255))

    or

    =IF(A2="","",LOOKUP(2,1/(MASTER!J3:AI3<>""),MASTER!$J$2:$AI$2))

    depending on which you prefer.
    This would work however Jordan Smith technically has 3 responses. That’s where it gets complicated.

    Thanks!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,000

    Re: Transpose and Pivot data for a list from columns

    Ah yes... that wasn't clear from your explanation!!

    In C2:
    =IFERROR(TRIM(MID(SUBSTITUTE(INDEX(MASTER!3:3,AGGREGATE(15,6,COLUMN(MASTER!$K3:$AI3)/(MASTER!$K3:$AI3<>""),COLUMNS($C:C))),$B2,""),4,255)),"")

    This is an Excel 2010+ solution. If you require that it works on Excel 2007 (you list that in your profile) let me know.
    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)

Similar Threads

  1. How to Transpose the data in Pivot table?
    By maxikaz in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-16-2016, 09:32 PM
  2. Pivot and Transpose data
    By lovinguy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2015, 01:28 PM
  3. Replies: 8
    Last Post: 02-03-2015, 03:42 PM
  4. [SOLVED] How to transpose data so they can be used for Pivot analysis
    By Agnese in forum Excel General
    Replies: 3
    Last Post: 07-27-2012, 02:37 PM
  5. Need to Transpose a large list of organizations into columns with top row as the header
    By jamiek1987 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2012, 09:26 AM
  6. Replies: 1
    Last Post: 01-27-2012, 07:53 AM
  7. Transpose Mailing List to Columns
    By mjmoore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-01-2006, 05:30 PM

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