+ Reply to Thread
Results 1 to 9 of 9

Countif excluding duplicates

  1. #1
    Registered User
    Join Date
    06-28-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    39

    Countif excluding duplicates

    Hi

    Its been commonly asked on here but the formulas I have tried don't seem to work.

    I need a countif function to count values in column C (excluding duplicates) but only if cells in column I are blank.

    Thanks

    Don

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

    Re: Countif excluding duplicates

    Post some sample data and tell us what results you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-28-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    39

    Re: Countif excluding duplicates

    As requested
    Attached Files Attached Files

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

    Re: Countif excluding duplicates

    Try this array formula**:

    =SUM(IF(FREQUENCY(IF(I6:I12="",MATCH(C6:C12,C6:C12,0)),ROW(C6:C12)-ROW(C6)+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.

  5. #5
    Registered User
    Join Date
    06-28-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    39

    Re: Countif excluding duplicates

    It says N/A

    I have {=SUM(IF(FREQUENCY(IF(I6:I900="",MATCH(C6:C900,C6:C900,0)),ROW(C6:C900)-ROW(C6)+1),1))}

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

    Re: Countif excluding duplicates

    If there are empty cells in the column C range you'll get that error.

    To account for empty cells try this version:

    =SUM(IF(FREQUENCY(IF(I6:I900="",IF(C6:C900<>"",MATCH(C6:C900,C6:C900,0))),ROW(C6:C900)-ROW(C6)+1),1))

    Still array entered.

  7. #7
    Registered User
    Join Date
    06-28-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    39

    Re: Countif excluding duplicates

    That's great.

    Thanks for that.

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

    Re: Countif excluding duplicates

    You're welcome. Thanks for the feedback!

  9. #9
    Registered User
    Join Date
    06-28-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    39

    Re: Countif excluding duplicates

    No problem

+ 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. Ranking with duplicates and excluding zero
    By Navin Agrawal in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-28-2016, 06:09 AM
  2. [SOLVED] Countifs excluding duplicates
    By Publicpenguin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2014, 09:54 PM
  3. [SOLVED] COUNTIFS and excluding duplicates
    By lawend in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 03:39 PM
  4. Pivot count excluding duplicates
    By Tom_J_W in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-02-2013, 03:14 AM
  5. Countif function, excluding duplicates in a related column?
    By xforum142riidax in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2011, 12:20 PM
  6. Excluding duplicates
    By analyst10 in forum Excel General
    Replies: 3
    Last Post: 11-22-2010, 08:19 PM
  7. [SOLVED] Count excluding Duplicates
    By GRM via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-15-2005, 05:10 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