+ Reply to Thread
Results 1 to 6 of 6

Countif/ifs formula but not counting duplicates

  1. #1
    Registered User
    Join Date
    05-22-2017
    Location
    LONDON
    MS-Off Ver
    2016
    Posts
    3

    Countif/ifs formula but not counting duplicates

    Hi,

    I have an excel table that looks as follow:

    Month Delivery no.
    1 011
    1 011
    1 013
    1 014
    3 015
    3 015
    3 016
    4 017

    I need to be able to count the number of unique deliveries in any given month. For example, for month number 1 there are 3 deliveries. I used the formula sumproduct(1/(countif). This works well for the all months, I am not sure I to finish off the formula by wanting to do the same but just for month number one

    Any helps would be great

    Thanks

    Vito11

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Countif/ifs formula but not counting duplicates

    Seeing as you are using excel 2016 is there any reason why you would be adverse to using a Pivot Table for this? If you check the box for add to data model you can use the distinct count option to perform this.

    Otherwise try this site, but it is very resource heavy on excel and isn't best practice.

    https://exceljet.net/formula/count-u...e-with-countif
    Please do add reputation where you see fit, it's nice to be nice and we all enjoy a pat on the back

    Please also mark your thread as solved once it has been.

  3. #3
    Registered User
    Join Date
    05-22-2017
    Location
    LONDON
    MS-Off Ver
    2016
    Posts
    3

    Re: Countif/ifs formula but not counting duplicates

    Hi,

    Thanks for your help and for sending the web link in which I was able to find the formula I need although I could not make it work:

    {=SUM(--(FREQUENCY(IF(A3:A12="1",B3:B12),B3:B12)>0))}


    Month Delivery no.
    1 011
    1 011
    1 013
    1 014
    3 015
    3 015
    3 016
    4 017

    Ps - can't use pivot as my team member not very familiar with it

    Any helps would be great

    Cheers

    V

  4. #4
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Countif/ifs formula but not counting duplicates

    this will do it with a Formula: displayed in sample file: 'entered with CTRL+SHIFT+ENTER

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

  5. #5
    Registered User
    Join Date
    05-22-2017
    Location
    LONDON
    MS-Off Ver
    2016
    Posts
    3

    Re: Countif/ifs formula but not counting duplicates

    Thanks ever so much!

  6. #6
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Countif/ifs formula but not counting duplicates

    No Problem Vito, I would certainly look at Pivot Table going forward mind, as they are the best practice for this sort of thing and can be combined with slicers to filter with ease. Should be pretty self explanatory for you colleague but happy to help if you need it.

    If this is now resolved could you please mark the thread as solved and add reputation if you see fit

+ 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. Formula or Macro for counting duplicates
    By razmas in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2017, 07:49 AM
  2. Formula for Counting Data with Duplicates
    By tentson in forum Excel General
    Replies: 8
    Last Post: 05-07-2016, 01:34 AM
  3. Count formula without counting duplicates
    By jason4444 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-14-2016, 10:07 PM
  4. Help welp CountIf formula with duplicates
    By Ian-C in forum Excel General
    Replies: 2
    Last Post: 09-26-2014, 08:24 AM
  5. Countif without counting duplicates
    By erice in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2014, 06:16 PM
  6. Sum Countif formula but ignore duplicates
    By TiLa in forum Excel General
    Replies: 5
    Last Post: 01-12-2012, 04:22 AM
  7. counting duplicates within array formula?
    By etmac in forum Excel General
    Replies: 5
    Last Post: 09-05-2006, 04:45 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