+ Reply to Thread
Results 1 to 5 of 5

Countifs excluding duplicates

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Countifs excluding duplicates

    Hi Everyone,

    I'm trying to count the number of products we have coming in during a given timeframe. Unfortunately the data I'm receiving will often list dupilcates of the same order. I'm really hoping to bypass the tedious task of deleting the hundreds of duplicates and just run a countifs function based on the product category and its arrival date which will exclude any duplicate orders. I've attached a simple sample of what I'm hoping to do. It seems like this would be a simple and common issue to resolve, but I just can't get past it yet or find the proper solution.

    Thank You Preemptively
    Attached Files Attached Files

  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: Countifs excluding duplicates

    Can you post the file without any VBA in the *.xlsx format?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-06-2014
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Countifs excluding duplicates

    Sure think and sorry for that.
    Attached Files Attached Files

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,366

    Re: Countifs excluding duplicates

    Maybe:

    put this in non merged cells:

    =SUM(IF(FREQUENCY(IF(A3:A14=E4,IF(B3:B14>=F4,IF(B3:B14<=H4,MATCH(B3:B14,B3:B14,0)))),ROW(A3:A14)-ROW(A3)+1),1))

    Array Formula, you need to press CTRL-SHIFT-ENTER button together, ENTER alone is not work..
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-06-2014
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Countifs excluding duplicates

    Hi Azumi,

    This formula certainly returns the correct total. Incorporating it into my main workbook, I was unable to return the correct value. I think that I may have oversimplified my issue for there are several other criteria I need to check and thousands of categories that will only grow every month. My apologies to you and dev. for a post that could have been done better and thank you for responding and solving this one so quickly

+ 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. Help with excluding multiple values from a COUNTIFS function.
    By MONEYBALLBINGO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2014, 10:30 AM
  2. CountIFs results excluding duplicates
    By Excel_learner in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-09-2014, 10:38 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. Countifs results excluding duplicates
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2011, 12:22 PM
  5. Excluding duplicates
    By analyst10 in forum Excel General
    Replies: 3
    Last Post: 11-22-2010, 08:19 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