+ Reply to Thread
Results 1 to 5 of 5

CountIfs(?) Ignoring Duplicates

  1. #1
    Registered User
    Join Date
    10-13-2009
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    75

    CountIfs(?) Ignoring Duplicates

    Hello,

    I'm trying to come up with a formula where I can count the number of unique individuals overdue on an action, but not have them counted twice. If they are overdue on 1 action it equals 1, if they are overdue on 50 actions it equals 1. Some individuals may not be overdue at all. So I need a single cell that can evaluate a range and determine total unique individuals overdue.

    For example:

    Please Login or Register  to view this content.
    Although 3 actions are overdue (<0), only 2 unique people are overdue so the formula would return 2.

    Anyone have a solution for something similar they've tackled? Thank you!

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

    Re: CountIfs(?) Ignoring Duplicates

    =SUM(--(MATCH((B2:B10=B2:B10)*(C2:C10<0),(B2:B10=B2:B10)*(C2:C10<0),)=ROW(A1:A9))) as array formula

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: CountIfs(?) Ignoring Duplicates

    Try this...

    Data Range
    A
    B
    C
    D
    E
    1
    Item
    Person
    Days Till Due
    ------
    Uniques
    2
    X1
    A
    25
    2
    3
    X1
    B
    Completed
    4
    X1
    C
    25
    5
    X2
    A
    -67
    6
    X2
    B
    -67
    7
    X3
    A
    Completed
    8
    X3
    C
    Completed
    9
    X4
    B
    -5
    10
    X4
    C
    Completed


    This array formula** entered in E2:

    =SUM(IF(FREQUENCY(IF(C2:C10<0,MATCH(B2:B10,B2:B10,0)),ROW(B2:B10)-ROW(B2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    10-13-2009
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: CountIfs(?) Ignoring Duplicates

    Both of those worked! Now I'll spend some dissecting why/how they worked. Thanks so much both of you!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: CountIfs(?) Ignoring Duplicates

    You're welcome. Thanks for the feedback!

+ 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] Combining Large + If + Ignoring Duplicates
    By LordExcelalot in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-15-2016, 04:48 AM
  2. Multiple COUNTIFS ignoring duplicate values in a column
    By hamzahs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2015, 11:31 AM
  3. Countifs function, ignoring those blanks
    By stevend1978 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-19-2015, 06:33 PM
  4. Ignoring duplicates in formula
    By xlsnovice in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-28-2013, 03:19 PM
  5. [SOLVED] ignoring duplicates in countifs
    By banvir1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2013, 01:21 PM
  6. [SOLVED] Countifs() ignoring FALSE?
    By y_t in forum Excel General
    Replies: 1
    Last Post: 05-25-2012, 08:53 PM
  7. Ignoring Duplicates
    By Editz in forum Excel General
    Replies: 5
    Last Post: 01-19-2007, 07:24 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