+ Reply to Thread
Results 1 to 7 of 7

COUNTIFS is double counting

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    Canada
    MS-Off Ver
    MS Office 10
    Posts
    4

    Question COUNTIFS is double counting

    Hi, I'm stumped on trying to find the right formula that will only count the first occurrence of a text. I'm using COUNTIFS and so there several criteria in several columns. However one column (E) includes the organization's name and I only want to count the first occurrence for each organization. I tried to count the original total with duplicates but then remove the duplicate occurences. Here is what I did:

    =COUNTIFS($G$29:$G$105,"Domestic*",$J$29:$J$105,"Confirmed*",$H$29:$H$105,H18)-COUNTIFS($G$29:$G$105,"Domestic*",$J$29:$J$105,"Confirmed*",$H$29:$H$105,H18,$E$29:$E$105,$E$29:$E$105&"")

    But it didn't work... I also tried variations of the SUMPRODUCT and SUM(IF...) without much luck.

    Any suggestions?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: COUNTIFS is double counting

    This would probably be easier using a helper column if that is an option. Then you can change your formula to count only up to that cell, and then count on the helper column. See the attached example
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-11-2014
    Location
    Canada
    MS-Off Ver
    MS Office 10
    Posts
    4

    Re: COUNTIFS is double counting

    Hi thanks for the quick reply. I don't think I can make this one work because there are multiple criteria that need to be met first. Once those criteria are applied it may have filtered out the first occurrence of the org's name resulting in the formula capturing a 0. Does that make sense?
    Last edited by infiniticihr; 08-13-2014 at 12:39 PM.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: COUNTIFS is double counting

    Yes, you can use a similar approach with a helper column to count only the first instance of each. If you could upload an example workbook with what the data looks like and the different conditions I can help put a formula together.

  5. #5
    Registered User
    Join Date
    08-11-2014
    Location
    Canada
    MS-Off Ver
    MS Office 10
    Posts
    4

    Re: COUNTIFS is double counting

    Hi, here is a sample spreadsheet.

    I need to have criteria that looks for the following criteria - Domestic, Confirmed and Sector while ensuring it doesn't double count the organizations. I want to know how many partners there are, but some partners are listed more than once. You will see my summary table to the right of the main table and that's where the formulas will provide totals.
    Attached Files Attached Files
    Last edited by infiniticihr; 08-13-2014 at 12:39 PM.

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: COUNTIFS is double counting

    Is this what you wish?
    Attached Files Attached Files
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  7. #7
    Registered User
    Join Date
    08-11-2014
    Location
    Canada
    MS-Off Ver
    MS Office 10
    Posts
    4

    Re: COUNTIFS is double counting

    Quote Originally Posted by Izandol View Post
    Is this what you wish?
    You are amazing!!! So far so good Thank you!

+ 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 and Double Counting
    By jlacsina in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2013, 09:55 PM
  2. Double counting based on COUNTIFS with OR statement
    By figo12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2013, 12:12 PM
  3. COUNTIFS not counting all numbers in one cell
    By taichi56 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-16-2013, 05:46 PM
  4. [SOLVED] COUNTIFS : counting instances of a number after a particular date
    By viridian in forum Excel General
    Replies: 5
    Last Post: 05-01-2012, 03:32 PM
  5. Countifs not counting, returns #value
    By Qualo_Jinn in forum Excel General
    Replies: 3
    Last Post: 12-09-2011, 04:13 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