+ Reply to Thread
Results 1 to 2 of 2

Count only unique values with two conditions

  1. #1
    Registered User
    Join Date
    04-20-2015
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    2010
    Posts
    16

    Count only unique values with two conditions

    Hi all,

    I'm trying to count the amount of employee's (temp. workforce) that left last week (so that changes every week) and have invoice "" (Not "system" or "DI").
    Because there are multiple rows I can't succeed to count the unique amount of employees that left last week.
    I found quite a similar version somewhere else on the internet, but that one is simplified to one criteria/condition.

    Please find attached an example.
    Attached Files Attached Files
    Last edited by Melon6; 05-21-2015 at 03:34 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2013
    Posts
    7,950

    Re: Count only unique values with two conditions

    =SUMPRODUCT(($A$2:$A$13>TODAY()-7)*($A$2:$A$13<=TODAY())*($B$2:$B$13="")/COUNTIFS($C$2:$C$13,$C$2:$C$13))
    or
    =SUMPRODUCT(($A$2:$A$13>TODAY()-7)*($A$2:$A$13<=TODAY())*($B$2:$B$13="")/(COUNTIFS($A$2:$A$13,$A$2:$A$13,$B$2:$B$13,"",$C$2:$C$13,$C$2:$C$13)+COUNTIFS($A$2:$A$13,$A$2:$A$13,$B$2:$B$13,$B$2:$B$13,$C$2:$C$13,$C$2:$C$13)))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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 unique values with multiple conditions
    By liybpg in forum Excel General
    Replies: 6
    Last Post: 03-18-2015, 05:43 AM
  2. Count Unique Values With Multiple Conditions, Array Method
    By 5150 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-28-2014, 04:37 PM
  3. [SOLVED] count the number of unique values given certain conditions
    By eh308701 in forum Excel General
    Replies: 8
    Last Post: 05-31-2012, 11:48 PM
  4. count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. [SOLVED] count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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