+ Reply to Thread
Results 1 to 6 of 6

Re-arrange data from list to table

  1. #1
    Registered User
    Join Date
    03-11-2023
    Location
    D?sseldorf, Germany
    MS-Off Ver
    Latest for Mac
    Posts
    3

    Re-arrange data from list to table

    First time poster here and not a native speaker, so I might lack the correct expressions sometimes - please bear with me.

    I very often come across the problem to transfer a list of value pairs into a table.
    To be more specific, the value pairs consists of a product id and another string (e.g. file name or URL).
    What I need is a table of all product ids with all possible strings in the columns behind. It is of no consequence if a string is paired to multiple ids.

    What I have:

    product id > string
    A > 123.jpg
    A > 124.jpg
    B > 223.jpg
    B > 224.jpg
    A > 125.jpg
    C > 123.jpg
    C > 323.jpg

    What I need:

    product id > string_1 > string_2 > string_3 > ?
    A > 123.jpg > 124.jpg > 125.jpg
    B > 223.jpg > 224.jpg
    C > 123.jpg > 323.jpg

    Would be great if you could show me a way to achieve this with Excel.

    Cheers

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,496

    Re: Re-arrange data from list to table

    If you have the functions in Excel for Mac, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,496

    Re: Re-arrange data from list to table

    Note: you might not be able to put the formula directly into a Structured Table.

    If you need to do that, put the formula in a cell OUTSIDE (and not next to the Table). Then copy and Paste Special | Values into the Table.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Re-arrange data from list to table

    An alternative is to pivot the data in Power Query

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    F
    G
    1
    product id string product id 1 2 3
    2
    A 123.jpg A 123.jpg 124.jpg 125.jpg
    3
    A 124.jpg B 223.jpg 224.jpg
    4
    B 223.jpg C 123.jpg 323.jpg
    5
    B 224.jpg
    6
    A 125.jpg
    7
    C 123.jpg
    8
    C 323.jpg
    Sheet: Sheet1
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    03-11-2023
    Location
    D?sseldorf, Germany
    MS-Off Ver
    Latest for Mac
    Posts
    3

    Re: Re-arrange data from list to table

    Hi Trevor, will try this - thanks a lot!

  6. #6
    Registered User
    Join Date
    03-11-2023
    Location
    D?sseldorf, Germany
    MS-Off Ver
    Latest for Mac
    Posts
    3

    Re: Re-arrange data from list to table

    Hi Alan,
    Seems like I should really dig into the power query topic - tried to avoid it, but there are no excuses any more.
    Thank you.

+ 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. Re-Arrange Table Data
    By dtpunshon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2021, 06:13 PM
  2. Re-arrange data set for mailing list
    By gato88 in forum Excel General
    Replies: 1
    Last Post: 05-17-2016, 10:17 AM
  3. How to arrange Data thanks to a Pivot Table
    By Yomdi in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-04-2015, 02:43 PM
  4. [SOLVED] Arrange data alphabatically in a list
    By ROHAN999 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-10-2013, 07:00 AM
  5. [SOLVED] Arrange data from table
    By atlant15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 11:48 AM
  6. Arrange List of Names in range table
    By bopsgtir in forum Excel General
    Replies: 5
    Last Post: 12-18-2010, 06:13 AM
  7. Manipulate and arrange table data into summary list
    By DavidSpackman in forum Excel General
    Replies: 2
    Last Post: 07-28-2010, 12:57 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