+ Reply to Thread
Results 1 to 5 of 5

Count Cells with certain value but don't double count

  1. #1
    Registered User
    Join Date
    09-05-2019
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    3

    Question Count Cells with certain value but don't double count

    Which formula can I use if I want to achieve the following:

    Column A = Client
    Column B = Country

    There are more columns with dates and accounts receivable.

    I want to know how many clients I have for each country, but I don't want it to count the same client multiple times, e.g. Client A from Canada bought 4 times this month so 4 entries in the sheet and Client B from Canada bought once this month so it should show 2 Clients from Canada.

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Count Cells with certain value but don't double count

    Sumproduct(1/countifs(b2:b8,b2:b8,c2:c8,c2:c8))
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-05-2019
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    3

    Re: Count Cells with certain value but don't double count

    That doesn't work unfortunately, because the formula counts the same client 4 times. Should only be once.

    It should be like this:

    Date Client Country Amount
    01/08/2019 Client A Canada $500,00
    02/08/2019 Client B Canada $1.000,00
    03/08/2019 Client C France $250,00
    04/08/2019 Client D Italy $450,00
    05/08/2019 Client C France $1.500,00
    06/08/2019 Client A Canada $200,00
    07/08/2019 Client D Italy $350,00
    08/08/2019 Client A Canada $900,00
    09/08/2019 Client A Canada $1.100,00
    10/08/2019 Client D Italy $600,00

    Country Number of Clients Result Should be
    Canada 2
    France 1
    Italy 1

  4. #4
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: Count Cells with certain value but don't double count

    =SUM(--(FREQUENCY(IF($C$2:$C$11=B14,MATCH($B$2:$B$11,$B$2:$B$11,0)),ROW($B$2:$B$11)-ROW($B$2)+1)>0))
    Press Control Shift Enter. This is an array formula.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-05-2019
    Location
    Germany
    MS-Off Ver
    2016
    Posts
    3

    Re: Count Cells with certain value but don't double count

    Awesome thanks that worked.

    Could you help me with another issue?

    Unfortunately I cannot attach any files, don't know why.

    It's the same data, just with an added column with account managers, so the employee who takes care of which client.

    And I want to know how many new clients we got by employee by month.

    I used this one: =SUMPRODUCT((MONTH(Date Range)=1)*(Account Manager Range="Employee 1").

    Problem I have again is that it counts the same client multiple times instead of once.

+ 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. Replies: 1
    Last Post: 05-19-2017, 07:37 AM
  2. Count if: Compare 2 ranges and count where cells in same row differ
    By ExcelFed in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2014, 02:34 PM
  3. [SOLVED] Count formula not count hidden cells in table
    By tlacloche in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 02:35 PM
  4. [SOLVED] Count in a range, where identical adjacent cells count as one instance.
    By the-algebraist in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-05-2013, 11:18 AM
  5. Avoiding double-count of cells with similar text
    By MJCharaf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-10-2013, 11:23 AM
  6. [SOLVED] count occupied cells, but put count total in different worksheet
    By NewbieOfVBA in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-24-2012, 07:30 PM
  7. Double If Count
    By XCESIV in forum Excel General
    Replies: 3
    Last Post: 08-31-2009, 01:48 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