+ Reply to Thread
Results 1 to 13 of 13

Combining Order Data from Multiple Rows Into Single Row

  1. #1
    Registered User
    Join Date
    10-21-2016
    Location
    Kansas City, MO
    MS-Off Ver
    MS365
    Posts
    80

    Combining Order Data from Multiple Rows Into Single Row

    Hey, everyone! Have a spreadsheet with 2 columns (attached): orders and items. Each row represents one item in an order, so orders w/ multiple items get multiple rows. I'm needing to show instead each order on a single row and if any orders have multiple items, I need them listed in the same cell, separated by a semi-colon. Can anyone please help with this? Formulas or Power Query preferred over VBA but all methods accepted.
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Combining Order Data from Multiple Rows Into Single Row

    with Power Query
    (XL2010/2013 require Power Query add-in)
    Order List
    ABC124 bread,milk
    ABC125 bread,candy,cheese,cookies,crackers,juice,meat,milk,pizza
    ABC126 donuts
    ABC127 apples,oranges

  3. #3
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Re: Combining Order Data from Multiple Rows Into Single Row

    I would prefer to use a function but that is a great suggestion.

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combining Order Data from Multiple Rows Into Single Row

    Quote Originally Posted by wherdzik View Post
    I would prefer to use a function but that is a great suggestion.
    so use a worksheet functions and show it

  5. #5
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    548

    Re: Combining Order Data from Multiple Rows Into Single Row

    I am sorry Sandy, I posted in the wrong thread. I am not sure how this happend.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combining Order Data from Multiple Rows Into Single Row

    @wherdzik
    I don't know either

  7. #7
    Registered User
    Join Date
    10-21-2016
    Location
    Kansas City, MO
    MS-Off Ver
    MS365
    Posts
    80

    Re: Combining Order Data from Multiple Rows Into Single Row

    Sorry, sandy666, I see Power Query lists steps of "Source", "Grp", "List", and "Ext", but I don't understand how these are applied or what they do. I have Power Query but am unfamiliar w/ it - could you please explain the steps you took?

  8. #8
    Forum Contributor
    Join Date
    10-22-2022
    Location
    Santa Cruz, Bolivia
    MS-Off Ver
    MSO 365
    Posts
    157

    Re: Combining Order Data from Multiple Rows Into Single Row

    Hi everyone, if still interesting in a formula solution try this:

    Please Login or Register  to view this content.
    I hope it results useful

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    4,011

    Re: Combining Order Data from Multiple Rows Into Single Row

    2013 VERSION Power Query Or VBA
    The formula needs to use two different

    Please refer to the VBA CODE regardless of whether column B is repeated

    Please Login or Register  to view this content.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combining Order Data from Multiple Rows Into Single Row

    Quote Originally Posted by eNinjaInTraining View Post
    Sorry, sandy666, I see Power Query lists steps of "Source", "Grp", "List", and "Ext", but I don't understand how these are applied or what they do. I have Power Query but am unfamiliar w/ it - could you please explain the steps you took?
    sure, here is

    Please Login or Register  to view this content.
    for more information read here: Learn Power Query



    if the problem is solved, make me happy and hit Add Reputation (bottom left corner next to the post that was helpful)
    Last edited by sandy666; 05-26-2023 at 08:49 PM.

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

    Re: Combining Order Data from Multiple Rows Into Single Row

    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.
    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

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,256

    Re: Combining Order Data from Multiple Rows Into Single Row

    Quote Originally Posted by ExceLogan View Post
    Hi everyone, if still interesting in a formula solution try this:

    Please Login or Register  to view this content.
    I hope it results useful
    This solution won't work with Excel 2013. See the OP's forum profile on the left.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  13. #13
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,932

    Re: Combining Order Data from Multiple Rows Into Single Row

    D3
    Please Login or Register  to view this content.
    copied down to D10.

    E3
    Please Login or Register  to view this content.
    copied down and across to Z10
    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. Need to copy data from multiple rows to a single column in a specific order
    By bradshk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2023, 01:31 PM
  2. Combining multiple rows of data into a single row
    By jhsiao in forum Excel General
    Replies: 3
    Last Post: 12-12-2012, 11:20 AM
  3. [SOLVED] How to consolidate data containing multiple colums and rows into single row in order?
    By seaspi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2012, 05:33 AM
  4. Combining Multiple Rows in to Single Rows
    By Pickle29 in forum Excel General
    Replies: 2
    Last Post: 12-07-2011, 01:05 PM
  5. Combining single rows into multiple lined items
    By bread in forum Excel General
    Replies: 1
    Last Post: 08-31-2009, 12:27 PM
  6. Combining Multiple Rows into a Single Record
    By civic1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-30-2007, 09:14 PM
  7. combining multiple rows of data into one single row of data
    By myersjl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-30-2006, 05:45 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