+ Reply to Thread
Results 1 to 7 of 7

countifs unique values

  1. #1
    Registered User
    Join Date
    01-06-2010
    Location
    sydney
    MS-Off Ver
    Excel 2007
    Posts
    17

    countifs unique values

    HI Gurus

    I am trying to do a countif formula where it will only count unique values based on another cell. I have attached a spreadsheet of what I mean. I essentially need the yellow coloured cells to have a formula which we give me the numbers which i have hardcoded in.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: countifs unique values

    Try this ...

    =SUM(IF($A$3:$A$8=E3,1/COUNTIFS($A$3:$A$8,E3,$B$3:$B$8,$B$3:$B$8)))

    Enter with Ctrl+Shift+Enter.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: countifs unique values

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


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

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

    Re: countifs unique values

    Quote Originally Posted by Phuocam View Post
    Try this ...

    =SUM(IF($A$3:$A$8=E3,1/COUNTIFS($A$3:$A$8,E3,$B$3:$B$8,$B$3:$B$8)))

    Enter with Ctrl+Shift+Enter.
    I think COUNTIFS is unnecessary here
    Attached Files Attached Files

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: countifs unique values

    Quote Originally Posted by tim201110 View Post
    I think COUNTIFS is unnecessary here
    ADD ONE MORE ROW AND ENTER DATA AS
    DEPARTMENT=1 and EMPLOYEE NAME Chris

    AND CHECK YOUR FORMULA
    Samba

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

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: countifs unique values

    Quote Originally Posted by tim201110 View Post
    I think COUNTIFS is unnecessary here
    No, it is necessary. See this ...
    Attached Files Attached Files

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

    Re: countifs unique values

    Agree _________

+ 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. Countifs unique values only
    By BCoke in forum Excel General
    Replies: 3
    Last Post: 10-16-2015, 03:45 AM
  2. [SOLVED] How to Count Unique Values with COUNTIFS?
    By Kingswood in forum Excel General
    Replies: 8
    Last Post: 08-01-2015, 08:02 PM
  3. Countifs for Unique Values
    By lucas813 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2015, 01:45 PM
  4. Countifs Unique values by month
    By bbrunof13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2015, 02:40 PM
  5. COUNTIFS unique values
    By Dan27 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-14-2014, 12:13 AM
  6. countifs for unique values
    By rbenguerel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-31-2014, 07:57 AM
  7. COUNTIFS with Unique Values
    By lefteegunzz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-23-2013, 04:25 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