+ Reply to Thread
Results 1 to 7 of 7

Moving multiple rows into one row

Hybrid View

  1. #1
    Registered User
    Join Date
    10-23-2018
    Location
    Vancouver
    MS-Off Ver
    365
    Posts
    6

    Moving multiple rows into one row

    Hello,

    I need to combine multiple rows based on and id number in column 1 into a single row without losing any of the data. I have attached a sample file. It is ok to have multiple instances of information, as it can be parsed out in further steps.

    I expect there might be more information needed, but I am unsure what until asked.

    Thanks
    Attached Files Attached Files

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

    Re: Moving multiple rows into one row

    Show us a mocked up solution of what you want your data to look like. We'd only be guessing at this point.
    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

  3. #3
    Registered User
    Join Date
    10-23-2018
    Location
    Vancouver
    MS-Off Ver
    365
    Posts
    6

    Re: Moving multiple rows into one row

    Hello again..... good point!

    I have attached a mockup of what I would need.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Moving multiple rows into one row

    My example will only work if you have Excel 365
    If you do not then please ignore this response.

    See attached workbook.
    It uses 2 formulas. The first is a UNIQUE() formula on the ID numbers.
    The second formula is a combination of TEXTSPLIT() TEXTJOIN() and FILTER() based on the ID# formula.
    Attached Files Attached Files
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  5. #5
    Registered User
    Join Date
    10-23-2018
    Location
    Vancouver
    MS-Off Ver
    365
    Posts
    6

    Re: Moving multiple rows into one row

    I had to do a little modification on the formulas to make it deal with the actual volume of information, but it all looks great!

    Thank you

  6. #6
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    MA, USA
    MS-Off Ver
    365(PC) V:2412
    Posts
    1,477

    Re: Moving multiple rows into one row

    Glad it worked and thanks for the rep

    PS: you should update your MS Office version from 2016 to 365 in your profile.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Moving multiple rows into one row

    Another way: The whole table in one go:
    Formula: copy to clipboard
    =LET(t,SteveStudentRoutingReport202307!A2:I999,n,TAKE(t,,1),u,UNIQUE(n),v,FILTER(u,u),r,HSTACK(v,DROP(IFNA(REDUCE("",v,LAMBDA(i,x,VSTACK(i,TOROW(FILTER(DROP(t,,1),n=x))))),""),1)),r)
    In this formula it is not necessary to adjust the references when there are more or less students and or data.
    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. Replies: 16
    Last Post: 07-16-2023, 09:56 AM
  2. [SOLVED] Moving data from multiple rows into single row/multiple columns
    By Iain170 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-08-2022, 01:42 AM
  3. [SOLVED] Moving Multiple Rows from One Column to Multiple Columns
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2020, 10:30 AM
  4. Moving data from multiple rows to a single one
    By martinez_pedro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-04-2014, 01:03 AM
  5. moving multiple rows to a single row using macros
    By meloneis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2013, 03:26 PM
  6. [SOLVED] Moving multiple rows into one row (1 record has 4 rows)
    By dogmaxi in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 06-11-2013, 07:01 PM
  7. Moving Multiple Rows at one time
    By Lynda M in forum Excel General
    Replies: 2
    Last Post: 10-03-2005, 05:05 PM

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