+ Reply to Thread
Results 1 to 7 of 7

Count names and # routes using the unique function

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Count names and # routes using the unique function

    Hello

    I was wondering if there is an all in one function/formula in excel 365, to output (in the summary table) the names and count the number of routes completed. Please see attached sample.

    Thank you
    Attached Files Attached Files
    Last edited by KenV15; 01-22-2024 at 01:15 PM.

  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: Count names and # routes using the unique function

    If you change your 365 update channel to the beta channel, you can try this:

    =VSTACK(HSTACK("Name","Total # Rte"),GROUPBY(B2:B15,A2:A15,COUNT))
    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 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: Count names and # routes using the unique function

    If you don't want to do that, try this instead:

    =LET(u,UNIQUE(B2:B15),c,COUNTIF(B2:B15,u),VSTACK(HSTACK("Name","Total # Rte"),SORT(HSTACK(u,c),1),HSTACK("Total",SUM(c))))
    Attached Files Attached Files

  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: Count names and # routes using the unique function

    1. There's a stray space after Mike in B13 - "Mike ".

    2. Delete ALL expected results.

    3. Use:

    =LET(A,B2:B15,B,UNIQUE(A),C,BYROW(B,LAMBDA(x,COUNTIF(A,x))),VSTACK({"Name","Total # routes"},HSTACK(B,C),HSTACK("Total",ROWS(A))))

    4. See file.
    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
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Count names and # routes using the unique function

    Glen thank you for pointing that out to me. Have a good day.

  6. #6
    Registered User
    Join Date
    08-05-2023
    Location
    USA
    MS-Off Ver
    Office 365 V2401
    Posts
    29

    Re: Count names and # routes using the unique function

    Wow you made my day thank you Ali! Your knowledge of excel is truly amazing

    Also thank you Glen.

    Both of you make this forum a great place to learn excel.

  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: Count names and # routes using the unique function

    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.

    Also, if you have not already done so, you may not be aware that you can thank 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.

+ 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. [SOLVED] Unique names and count corresponding data in totals
    By TaylorGC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-17-2021, 09:46 AM
  2. A range of unique names followed by their count
    By geoffreybrennet in forum Excel General
    Replies: 14
    Last Post: 10-26-2020, 07:43 AM
  3. Count Unique Names
    By RustyRick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2017, 03:29 PM
  4. Create unique # of worksheets based on list count with unique names
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-24-2016, 09:51 AM
  5. [SOLVED] Count unique names in a column
    By HilaryPalmer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-15-2015, 06:32 AM
  6. Count Unique Names in Pivot Table
    By rlsublime in forum Excel General
    Replies: 2
    Last Post: 08-24-2012, 12:47 PM
  7. Count per unique dates and names
    By ElmerS in forum Excel General
    Replies: 4
    Last Post: 07-09-2009, 04:40 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