+ Reply to Thread
Results 1 to 26 of 26

Listng team-wise names from a list

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Listng team-wise names from a list

    I have a database. Sample file is attached. It has different persons from different teams. I need to get them listed separately based on teams. Kindly guide me and oblige.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Listng team-wise names from a list

    First cell of output table:

    PHP Code: 
    =IFERROR(INDEX($B:$B,AGGREGATE(15,6,ROW($F$2:$F$17)/($F$2:$F$17=I$3),ROWS($1:1))),""
    drag down and accross
    Quang PT

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,411

    Re: Listng team-wise names from a list

    Use this formula in cell G2:

    =F2&"_"&COUNTIF(F$2:F2,F2)

    Copy down to the bottom of your table. Then you can use this formula in cell I4:

    =IFERROR(INDEX($B:$B,MATCH(I$3&"_"&ROWS($1:1),$G:$G,0)),"")

    Copy across and down as required.

    Hope this helps.

    Pete

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Listng team-wise names from a list

    The whole table in one go:

    =LET(A,B2:B17,B,F2:F17,C,TRANSPOSE(SORT(UNIQUE(B))),D,DROP(REDUCE("",C,LAMBDA(x,y,HSTACK(x,FILTER(A,B=y)))),,1),VSTACK(C,D))

    no copy/paste. Just delete any expected results.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Listng team-wise names from a list

    A little bit other solution:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    No please. It is showing an error. Screenshot attached.
    Attached Images Attached Images

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Listng team-wise names from a list

    A picture is no use. Also, who areyou talking to?

  8. #8
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    Thank you. It worked even though I could not understand the formula!! Thank you very much.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Listng team-wise names from a list

    Once again, we DO NOT KNOW who you are talking to!!!!

  10. #10
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    Sorry. This did not work.

  11. #11
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    I was responding to bebo021999 as the solution given did not work and showed a Circular Reference error. Hence I shared the screenshot.
    Your solution worked even though I could not understand the formula. Thank you.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Listng team-wise names from a list

    Please STOP for a moment. Who are you talking to? We have names. Use them.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Listng team-wise names from a list

    Finally. You are telling us who yiu are replying to . Please continue to do so. It is very annoying to see comments that are directed at no-one in particular.

    You're welcome. Thanks for letting us know that you got an answer.




    If that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  14. #14
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    No please. It did not work. I attach the worksheet with formula shown by you. Kindly take a look and guide me. Thank you.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    Sorry. I am not very tech savvy. I clicked on the Reply button. Apparently, I clicked the wrong one.
    I am not yet closing it as I am looking for solutions that I am able to comprehend more easily.
    Thank you.

  16. #16
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Listng team-wise names from a list

    The formula in post 2, assumed that line 3 already has the title IPL-A...
    It seems that you want the formula for line 2 (the title) and line 3 downwards...
    I3, then copy accross:
    Please Login or Register  to view this content.
    I4, drag down and accross
    Please Login or Register  to view this content.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    @bebo021999 Thank you. It works. Just one suggestion. In the Title Row, it lists IPL-D, IPL-C, IPL-B and IPL-A. Instead, if it lists from IPL-A to IPL-D, it would look better. Otherwise, it is fine. Thank you.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    @HansDouwe
    Just one more query.
    In the sample I gave four teams - IPL-A to IPL-D.
    If I have more teams, let's say 26 teams, IPL-A to IPL-Z, will the formula change?

  19. #19
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Listng team-wise names from a list

    Quote Originally Posted by jsridhar View Post
    @bebo021999 Thank you. It works. Just one suggestion. In the Title Row, it lists IPL-D, IPL-C, IPL-B and IPL-A. Instead, if it lists from IPL-A to IPL-D, it would look better. Otherwise, it is fine. Thank you.
    If you want to sort the header rows, there are several ways to do it depending on your data:
    1- If your data is relatively stable, and the team list is fixed:
    Method 1: Copy I3:L3, paste it transposed into another column, for example, N3:N6. Sort this range, and then copy-paste transpose it back into I3:L3.
    Method 2: Sort column F. Then copy/paste the values in the header range I3:L3. Revert to sorting by column A.

    2- If your data frequently changes, and the team list is regularly updated:
    Method 1: Use an auxiliary column, like column G, to mark column F according to A-Z conditions. (like sample attached)
    Method 2: In my opinion, the best approach is to use VBA. (will come back if you refer to VBA)
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    @bebo021999
    Thank you.

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

    Re: Listng team-wise names from a list

    If there more teams/data only adjust the ranges.

    If not all teams have the same size also add the function IFNA to the formula to prevent #N/A-errrors:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  22. #22
    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,704

    Re: Listng team-wise names from a list

    One more solution with 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.
    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

  23. #23
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    @HansDouwe
    This is brilliant.
    I will add one more variant now! In the attached file, I have a summary table of members.
    There are totally 29 members. However, when I choose COUNTA, it shows 32 as it adds wherever the formula is present.
    How do I get 29 by ignoring cells that do NOT have names?
    Attached Files Attached Files

  24. #24
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    @alansidman
    Thank you very much for your valuable inputs. I appreciate it.

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

    Re: Listng team-wise names from a list

    Please try in I14:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  26. #26
    Registered User
    Join Date
    05-04-2015
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    82

    Re: Listng team-wise names from a list

    @HansDouwe
    Thank you. It works.
    If you are not tired of me, I will add more variations. If you would rather stop here, I will understand.

+ 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 formula to calculate count of total team task month,week,day wise
    By johnlara in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-20-2022, 09:54 AM
  2. Arrange data year-wise for individual team
    By dibyendu2280 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2019, 09:05 AM
  3. [SOLVED] I want change the data row wise to coloum wise & coloumn wise to row wise.
    By satputenandkumar0 in forum Excel General
    Replies: 3
    Last Post: 12-20-2012, 08:34 AM
  4. Replies: 2
    Last Post: 12-06-2012, 06:02 PM
  5. [SOLVED] Fishing League - Need a formula to list winning team names and highest score
    By FinReaper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2012, 08:23 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