+ Reply to Thread
Results 1 to 6 of 6

COUNTIFS and excluding duplicates

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    2

    COUNTIFS and excluding duplicates

    I'm trying to come up with a formula which will count the number of units in a building associated with a business via the invoices. Some units have more than one invoice from the business, but I only want to count it once.

    From the attachment there are 2 invoices for the apartment from Leo's, I would only want to count it as 1. I have the COUNTIFS for the building, unit and business which would return 2. Is there a way to make it so it would only count the first listing. The data would not be sorted or filtered in anyway. I have created a column to combine the building and unit and am not opposed to helper columns.

    Book2.xlsx

    Thank you for your help

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: COUNTIFS and excluding duplicates

    Put the following formula in D2 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A "1" is returned if the values in A2, B2, and C2 have not ALL occurred previously. You can then sum the D column to get a UNIQUE count.
    Please click the * icon below if I have helped.

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: COUNTIFS and excluding duplicates

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


    entered as an array using Control+Shift+Enter


    I'm sure there has to be a shorter version out there.

  4. #4
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: COUNTIFS and excluding duplicates

    I got this formula off the forum some time back (sorry I dont remember the original author to credit)...

    Please Login or Register  to view this content.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: COUNTIFS and excluding duplicates

    I knew it could be done, and in 99 less characters too!

  6. #6
    Registered User
    Join Date
    08-08-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: COUNTIFS and excluding duplicates

    You are all amazing!!! Thank you so much!

+ 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. [SOLVED] ignoring duplicates in countifs
    By banvir1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2013, 01:21 PM
  2. COUNTIFS and Duplicates
    By connorwfarrell in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-05-2012, 04:17 AM
  3. Countifs results excluding duplicates
    By jeffreybrown in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2011, 12:22 PM
  4. Excluding duplicates
    By analyst10 in forum Excel General
    Replies: 3
    Last Post: 11-22-2010, 08:19 PM
  5. [SOLVED] Count excluding Duplicates
    By GRM via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-15-2005, 05:10 PM

Tags for this Thread

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