+ Reply to Thread
Results 1 to 10 of 10

Group a specific type in a list and then sort by a specific value

  1. #1
    Forum Contributor
    Join Date
    10-23-2022
    Location
    UK
    MS-Off Ver
    365 office
    Posts
    112

    Group a specific type in a list and then sort by a specific value

    Hello

    I have a list of data

    I want to stack the data in terms of status (in code review, in progress etc)

    Under each header, list the details attribute to status (ticket number, ticket details etc)

    Then sort within the stack in terms of dev priority

    Please see attached example

    Please
    Attached Files Attached Files

  2. #2
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Group a specific type in a list and then sort by a specific value

    Please try pasting this into L22:

    =LET(us,SORT(UNIQUE(B2:B34)),IFNA(DROP(REDUCE(0,us,LAMBDA(x,y,VSTACK(x,VSTACK(A1:J1,SORT(FILTER(A2:J3000,(B2:B3000=y)*(I2:I3000<>""),""),9,1),"")))),1),""))

    No need to copy - just hit ENTER and it will spill.
    Attached Files Attached Files
    Last edited by AliGW; 05-25-2024 at 05:41 AM. Reason: Workbook added.
    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.

  3. #3
    Forum Contributor
    Join Date
    10-23-2022
    Location
    UK
    MS-Off Ver
    365 office
    Posts
    112

    Re: Group a specific type in a list and then sort by a specific value

    That's great, thank you so much!

  4. #4
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Group a specific type in a list and then sort by a specific value

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  5. #5
    Forum Contributor
    Join Date
    10-23-2022
    Location
    UK
    MS-Off Ver
    365 office
    Posts
    112

    Re: Group a specific type in a list and then sort by a specific value

    Sorry to bother you again, but hope you can help me out again with this one

    I have added the raw data in now, which is 5.000 but the formula only goes to 2,000

    I have tried to edit the volume but it returns error value

    Any ideas?

    Thanks

    Attached new do
    Attached Files Attached Files

  6. #6
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Group a specific type in a list and then sort by a specific value

    You didn't change the ranges accordingly:

    =LET(us,SORT(UNIQUE(B2:B5000)),IFNA(DROP(REDUCE(0,us,LAMBDA(x,y,VSTACK(x,VSTACK(A1:J1,SORT(FILTER(A2:J5000,(B2:B5000=y)*(I2:I5000<>""),""),9,1),"")))),1),""))

    You can change 5000 in each range to a higher number if you wish, but all ranges must be the same size.

  7. #7
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Group a specific type in a list and then sort by a specific value

    You have more than 5000 rows, so try this:

    =LET(us,SORT(UNIQUE(TOCOL(B2:B6000,1))),IFNA(DROP(REDUCE(0,us,LAMBDA(x,y,VSTACK(x,VSTACK(A1:J1,SORT(FILTER(A2:J6000,(B2:B6000=y)*(I2:I6000<>""),""),9,1),"")))),1),""))

    Same caveat as my previous post.
    Attached Files Attached Files

  8. #8
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Group a specific type in a list and then sort by a specific value

    Has this helped? I'd appreciate knowing. Thanks.

  9. #9
    Forum Contributor
    Join Date
    10-23-2022
    Location
    UK
    MS-Off Ver
    365 office
    Posts
    112

    Re: Group a specific type in a list and then sort by a specific value

    Ah sorry yes, thanks for your help on this one too. Cheers

  10. #10
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,989

    Re: Group a specific type in a list and then sort by a specific value

    Thanks for coming back.

+ 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. How to group a list of dates to corresponding a specific weekday
    By Adrix1966 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-08-2023, 04:35 AM
  2. [SOLVED] Pivot Table showing specific number whenever I type a specific word
    By vstorres in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-26-2023, 06:17 PM
  3. [SOLVED] I am trying to group together rows of invoice lines into a specific type.
    By M.Spirit in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-27-2022, 08:59 AM
  4. [SOLVED] Textjoin, Concat a list of emails if they are in a specific Group. For Office 2016
    By MinisoftEggshell in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-16-2022, 12:39 PM
  5. [SOLVED] Textjoin, Concat a list of emails if they are in a specific Group.
    By MinisoftEggshell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2022, 10:41 AM
  6. [SOLVED] Drop-Down List Which Populates Its Self With Stock Belonging To A Specific Type
    By mdovey in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-05-2014, 06:05 PM
  7. Group & sort rows that have a specific value in column C
    By Lex in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-27-2006, 07:50 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