+ Reply to Thread
Results 1 to 9 of 9

COUNTIFS without duplicates

  1. #1
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    COUNTIFS without duplicates

    Hi,

    I'm currently working with the formula =COUNTIFS(Data[Quarter],"Q1",Data[Country],A3,Data[Sales],">2000"). However I need the formula to count only one for the n possible duplicates in the Data[Name] column. Any ideas ?

    Thanks,
    amphinomos

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: COUNTIFS without duplicates

    Use a countifs to count the duplicates and then remove them, so your formula-(countifs(x,y,x)-1) or you can play around with the FREQUENCY function
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: COUNTIFS without duplicates

    Post a SMALL sample file that shows us what result you expect.

    A SMALL sample file will have about 20 rows and as few columns of data as possible.

    We should not have to scroll either vertically or horizontally to inspect the data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: COUNTIFS without duplicates

    Here you go.
    Attached Files Attached Files

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: COUNTIFS without duplicates

    Use cells to hold the criteria:

    F1 = Q1
    G1 = Thailand
    H1 = 2000

    Then, this array formula**:

    =SUM(IF(FREQUENCY(IF(Data[Quarter]=F1,IF(Data[Country]=G1,IF(Data[Sales]>H1,MATCH(Data[Name],Data[Name],0)))),ROW(Data[Name])-MIN(ROW(Data[Name]))+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: COUNTIFS without duplicates

    Alternative using a helper and hidden column

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

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: COUNTIFS without duplicates

    Thanks Tony this works perfectly.

  8. #8
    Forum Contributor
    Join Date
    05-30-2013
    Location
    France
    MS-Off Ver
    2010
    Posts
    260

    Re: COUNTIFS without duplicates

    Thanks Fotis this also works great.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: COUNTIFS without duplicates

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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 results excluding duplicates
    By Excel_learner in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-09-2014, 10:38 AM
  2. COUNTIFS with no duplicates
    By dasseya1 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-23-2013, 04:09 AM
  3. [SOLVED] COUNTIFS and excluding duplicates
    By lawend in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 03:39 PM
  4. [SOLVED] ignoring duplicates in countifs
    By banvir1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2013, 01:21 PM
  5. COUNTIFS and Duplicates
    By connorwfarrell in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-05-2012, 04:17 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