+ Reply to Thread
Results 1 to 4 of 4

iterate range transpose to columns grouped by person

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    South Carolina, United States
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    4

    Question iterate range transpose to columns grouped by person

    I am new to programming within Excel. I have been searching through the forums looking for something similar to help me solve the issue that I am having; however, I have not been able to find anything yet.

    I am working with a result set of data that is formatted similar to the excerpt below. The actual data set is not fixed. It could easily be thousands of rows if not more; however, the format would be the same.

    Given
    Item Number Person Question Answer
    1 Anna Favorite Color Blue
    1 Anna Favorite Car Model T
    2 Anna Favorite Color Blue
    2 Anna Favorite Car Mustang
    1 Billy Favorite Color Green
    1 Billy Favorite Car
    2 Billy Favorite Color
    2 Billy Favorite Car Vette
    1 Charlie Favorite Color Black
    1 Charlie Favorite Car Bug
    2 Charlie Favorite Color Pink
    2 Charlie Favorite Car Horse

    I am trying to figure out the best approach to iterate through this data and have it formatted similar to below:

    Desired
    Anna Billy Charlie
    Item Number Favorite Color Favorite Car Favorite Color Favorite Car Favorite Color Favorite Car
    1 Blue Model T Green Black Bug
    2 Blue Mustang Vette Pink Horse

    I have been looking at doing this cell by cell; however, I believe there are more efficient ways of doing this. I think the part that is holding me up the most is trying to come up with the steps needed to make it look like the desired.

    If anyone could provide some potential guidance (maybe an example) on how I might go about solving such a request, then I would greatly appreciate it.

    I am also attaching the sample workbook that has the data mentioned above within it.

    Example.xlsx

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: iterate range transpose to columns grouped by person

    Try this CSE array in B2, confirm with Ctrl+Shift+Enter, not just Enter
    Then Drag Across and Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    [EDIT]
    Your sample sheet "Desired" B3:G4 is formatted for text, change this to general before trying the formula

    Here is the non CSE equivalent
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Marcol; 03-13-2013 at 12:21 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    South Carolina, United States
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    4

    Re: iterate range transpose to columns grouped by person

    Thank you for the reply.

    I am having a little bit of issues entering that formula. When i try to enter (ctrl shift enter) it just appears as text not any particular value.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: iterate range transpose to columns grouped by person

    Quote Originally Posted by Marcol View Post
    Try this CSE array in B2, confirm with Ctrl+Shift+Enter, not just Enter
    ......
    [EDIT]

    Your sample sheet "Desired" B3:G4 is formatted for text, change this to general before trying the formula

    Here is the non CSE equivalent
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note the edit to post #2

+ 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