+ Reply to Thread
Results 1 to 4 of 4

Count of Unique Values Based on Multiple Criteria

  1. #1
    Registered User
    Join Date
    08-14-2024
    Location
    Cincinnati
    MS-Off Ver
    365
    Posts
    2

    Count of Unique Values Based on Multiple Criteria

    Hello all!
    I am responsible for pulling all of our educational attendance information each month. I pull into excel all the registration information from programs that occurred in the previous month, and then I have a set of formulas that I use a COUNTIFS and SUMIFS to see how many people attended each program and the revenue associated.

    One thing I'd like to figure out is how to calculate how many groups/families come for a program. IE The Smith family brings their 4 children to programs in April, I would count them as 1 group/family. I can use the orderID (A:A) as a unique value. I can put the value in the yellow cell in my attached example.

    I don’t need to know the unique values, just how many of them occur- during a particular month, for a particular category.

    Lucy

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,946

    Re: Count of Unique Values Based on Multiple Criteria

    Is this what you want:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    08-14-2024
    Location
    Cincinnati
    MS-Off Ver
    365
    Posts
    2

    Re: Count of Unique Values Based on Multiple Criteria

    Thank TMS. Its almost what I need. I need to also filter it by date (so only unique order numbers in April) and by category (Zoo Troop vs Camp vs my many other categories not listed in my example file)
    So in my summary tab, I'll be able to see something like 40 families came to Zoo Troop in April (with 50 individual children B:B), 100 families came to Camp in May (with 150 individual children B:B). And then I also divide out the families that received financial assistance (J:J promocode <>LCEAF or)

    The multiple criteria is the part that's difficult.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,946

    Re: Count of Unique Values Based on Multiple Criteria

    Ok, this is how to limit the date by month/year:

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


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


    I'll leave you to add the other filters.

+ 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. Count Distinct/Unique Values Based on Multiple Criteria
    By EvolutionJulie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-23-2023, 05:01 AM
  2. [SOLVED] Count unique values based on multiple criteria
    By kv.singh in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-27-2020, 08:08 AM
  3. Count Unique values in multiple worksheets based on certain criteria
    By Kyuss21 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-06-2019, 01:09 PM
  4. Count unique values based on multiple criteria
    By Jonathan11235 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-19-2015, 10:02 PM
  5. [SOLVED] how to count unique values in excel based on multiple criteria
    By IDBUGM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2006, 12:10 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