+ Reply to Thread
Results 1 to 9 of 9

Trying to Create a list from a table

  1. #1
    Registered User
    Join Date
    07-02-2020
    Location
    U.S.
    MS-Off Ver
    Microsoft Excel for Mac
    Posts
    4

    Trying to Create a list from a table

    Hello,
    Just trying to organize my dataset to where it is one long list of data instead of having it organized in the table.
    In the sheet Indy GP T I have a table with the lap in column 1, then people listed across the top and their positions listed below.

    I want to create a list with Columns: Driver, Lap and Position. I have formatted how I would like to see it in the other sheet. But unsure (besides manually) how to generate the list.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Trying to Create a list from a table

    This can be done a few ways. The most straight forward is to use Power Query. The attached workbook includes that solution.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-02-2020
    Location
    U.S.
    MS-Off Ver
    Microsoft Excel for Mac
    Posts
    4

    Re: Trying to Create a list from a table

    Perfect, thank you.
    Could you please walk me through how you generated the list?

    Best.

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Trying to Create a list from a table

    This updated page also has the VBA solution that arrives at the same solution. In this case VBA creates an output sheet. This update contains both solutions.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by maniacb; 07-03-2020 at 12:13 PM. Reason: Corrections to response

  5. #5
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Trying to Create a list from a table

    Open Power Qwery (get Data) under data, select entire table, choose select table, once in PQ, right click the top left hand column and select "unpivot other columns" Close and save. I hope that works for you.

  6. #6
    Registered User
    Join Date
    07-02-2020
    Location
    U.S.
    MS-Off Ver
    Microsoft Excel for Mac
    Posts
    4

    Re: Trying to Create a list from a table

    I appreciate the help. Looks like i need to learn some more about how to do this because I'm still a bit lost.

    Thank you again

  7. #7
    Registered User
    Join Date
    07-02-2020
    Location
    U.S.
    MS-Off Ver
    Microsoft Excel for Mac
    Posts
    4

    Re: Trying to Create a list from a table

    I think it also has to do with Excel on Mac does not have Power Query. Oh well

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,236

    Re: Trying to Create a list from a table

    @Maniacb

    When offering coded solutions, either M Code or VBA, please post the relevant code to the thread for completeness. Thanks.

    Unfortunately. PQ solutions are not appropriate for Excel for Mac users as it’s not supported In that version.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Trying to Create a list from a table

    Not sure if you were able to leverage the vba code above, so I included a formula solution to come up with the same list. The formula are as follow

    indy.png
    at E90
    =IFERROR(INDEX($A$2:$A$87,AGGREGATE(15,6,(ROW($A$2:$A$87)-ROW($A$2)+1)/($B$2:$Y$87<>""),ROWS(E$90:E90))),"")
    at F90
    =IFERROR(INDEX($B$1:$Y$1,AGGREGATE(15,6,(COLUMN($B$1:$Y$1)-COLUMN($B$1)+1)/($B$2:$Y$87<>"")/($A$2:$A$87=E90),COUNTIFS(E$90:E90,E90))),"")
    at G90
    =XLOOKUP(E90,A$1:$A$87,XLOOKUP(F90,$A$1:$Y$1,($A$1:$Y$87)))

    and copy down about 2000 lines
    Attached Files Attached Files
    Last edited by maniacb; 07-03-2020 at 06:13 PM. Reason: Update Picture

+ 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. [SOLVED] Trying to create a dynamic table so I can create a updating drop down list.
    By sbobster15 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2019, 11:43 AM
  2. Trying to create a list from a table.
    By mile299 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-10-2019, 05:29 PM
  3. [SOLVED] Create List From Table
    By trench3368 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-04-2018, 12:05 PM
  4. Create a list from Table
    By sqrcbc in forum Excel General
    Replies: 1
    Last Post: 09-12-2017, 08:19 PM
  5. Index on Table to Create a list
    By dmills21 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2016, 08:47 PM
  6. [SOLVED] Create list from table
    By Networkdrone in forum Excel General
    Replies: 4
    Last Post: 01-02-2016, 07:21 AM
  7. Create a list from a table
    By Jogier505 in forum Excel General
    Replies: 4
    Last Post: 09-13-2010, 02:17 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