+ Reply to Thread
Results 1 to 2 of 2

Excel: Countifs with distinct count

  1. #1
    Registered User
    Join Date
    10-14-2020
    Location
    Dublin
    MS-Off Ver
    Professional plus
    Posts
    44

    Excel: Countifs with distinct count

    Hello everyone,

    Im currently encountering a a bump with trying to implement countifs function with multiple criteria, where in which one of the criteria has to be a distinct count of its values:

    This is the base formula im using:
    =SUM(COUNTIFS(side[Queue_d],"trms-pi-siv-bap-enforcement",side[defect_type],{"UFR","FPR"},side[is_dsr],"N",side[is_cn],"N"))

    So this is the basic countifs formula which is counting these various criterias, but i wanted to make an additional count of a column with only distinct values.

    The column i wanted to count distinct values is: side[seller_id]

    What i tried to do, is to create a helper column which states if a cell a distinct value or not, and so i created something like this:
    =SUM(COUNTIFS(side[Queue_d],"trms-pi-siv-bap-enforcement",side[defect_type],{"UFR","FPR"},side[is_dsr],"N",side[is_cn],"N",side[IsDistinct],"Distinct"))


    In the attached document, i have the pivot result next to the countifs formula im using to count the distinct values with the helper column:


    But for some reason, it doesnt give me the same result as i get from my pivot table

    Would anyone have a solution to my problem?

    I would be greatful!
    Last edited by Nicolantonio; 04-16-2021 at 05:51 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,576

    Re: Excel: Countifs with distinct count

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. How to distinct count in Excel
    By Terressa in forum Excel General
    Replies: 13
    Last Post: 08-16-2015, 05:00 AM
  2. [SOLVED] How to count distinct values in Excel
    By Arpita_Excel in forum Excel General
    Replies: 7
    Last Post: 07-22-2015, 02:05 AM
  3. count distinct values in excel
    By annux08 in forum Excel General
    Replies: 3
    Last Post: 07-13-2015, 09:21 AM
  4. How to Count Distinct Values in Excel
    By kisanvikas2015 in forum Excel General
    Replies: 2
    Last Post: 05-19-2015, 10:12 AM
  5. Count distinct in excel
    By akshaykadidal in forum Tips and Tutorials
    Replies: 3
    Last Post: 01-07-2014, 08:20 AM
  6. Countifs distinct values
    By mpeter2612 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-04-2013, 04:25 PM
  7. how can I count distinct names in an excel list?
    By RPC@Frito in forum Excel General
    Replies: 5
    Last Post: 02-03-2005, 06:06 PM

Tags for this Thread

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