+ Reply to Thread
Results 1 to 5 of 5

Count unique names based on multiple criteria

  1. #1
    Registered User
    Join Date
    11-12-2017
    Location
    Scunthorpe, England
    MS-Off Ver
    Various
    Posts
    3

    Count unique names based on multiple criteria

    Good Morning all,

    I have a spreadsheet that contains the following function:

    =COUNTIFS('Bonus Data'!$B$2:$B$464,"M",'Bonus Data'!$H$2:$H$464,"GB")

    The resulting count is 300.

    However when I manually count the names in $A$2:$A464 the answer should be 278, this is due to a number of peoples names appearing in A:A multiple times.

    How can I amend the formula to return only the count of unique names?

    Thanks in advance.

    Andy

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,250

    Re: Count unique names based on multiple criteria

    Removed by JT
    Last edited by JohnTopley; 03-11-2018 at 05:43 AM.

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count unique names based on multiple criteria

    =sum(--(match("M",if('Bonus Data'!$H$2:$H$464="GB",'Bonus Data'!$B$2:$B$464),)=row('Bonus Data'!$B$2:$B$464)-1)) CSE

  4. #4
    Registered User
    Join Date
    11-12-2017
    Location
    Scunthorpe, England
    MS-Off Ver
    Various
    Posts
    3

    Re: Count unique names based on multiple criteria

    Tim,

    Thank you for your speedy response but this gave me a #N/A response.

    Andy

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Count unique names based on multiple criteria

    =sum(--(iferror(match("M",if('Bonus Data'!$H$2:$H$464="GB",'Bonus Data'!$B$2:$B$464),),)=row('Bonus Data'!$B$2:$B$464)-1)) CSE

+ 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] Need to count unique items based on multiple criteria
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 02-28-2017, 02:24 AM
  2. Count unique values based on multiple criteria
    By Jonathan11235 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-19-2015, 10:02 PM
  3. [SOLVED] Unique value count based on multiple criteria
    By Ronny66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2013, 10:18 AM
  4. Formula to count Unique text based on multiple criteria
    By OAMPS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2012, 10:48 AM
  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