+ Reply to Thread
Results 1 to 6 of 6

Counting unique values with multiple criteria

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    australia
    MS-Off Ver
    2013
    Posts
    4

    Counting unique values with multiple criteria

    Hi,

    I am looking to count the unique amount of customers who are listed in column C based on the criteria that they purchased the product on the 1/08/2014 and that the product came from Department 3. The output I am looking for in this example would be 3. I can do it for this example but when I have 300 different customers it starts getting tricky and I'm a bit stumped on how to incorporate an array formula into a countifs() function or whether there is an alternative.

    Date Department Customer
    1/08/2014 3 A
    1/08/2014 3 B
    1/08/2014 2 C
    1/08/2014 3 D
    4/08/2014 3 A
    5/08/2014 2 A
    5/08/2014 3 D

    Cheers

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Counting unique values with multiple criteria

    Hi,

    Welcome to the forum.

    You need a helper column for this for identifying the unique customers. Please go through the attached file and see if this is what you are looking for.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-13-2014
    Location
    australia
    MS-Off Ver
    2013
    Posts
    4

    Re: Counting unique values with multiple criteria

    Thanks so much for the reply @cbatrody but if then I want to count the unique customers for the 5/08/2014, for department 3 then this wouldn't work for me.

    Any ideas?

    Appreciate the help!!

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: Counting unique values with multiple criteria

    find the attached file it is an array formula
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Counting unique values with multiple criteria

    Array Formula - Requires CTRL+SHIFT+ENTER


    =SUM((A2:A8=F3)*(B2:B8=G3)*IFERROR(1/COUNTIFS(A2:A8,F3,B2:B8,G3,$C$2:$C$8,$C$2:$C$8),0))


    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.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Counting unique values with multiple criteria

    You just have to modify the "Date" in F3 and "Department" in G3
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Counting unique values with multiple criteria

    @f.bomb

    Control+shift+enter, not just enter:
    Please Login or Register  to view this content.
    where F2 houses a date of interest like 1/08/2014 and G2 a department of interest like 3.

  8. #8
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Counting unique values with multiple criteria

    Try this..
    Modifying.. Sixth Sense solution...
    No Array is required..

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


    Don't forget to click *

+ 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] Counting Unique/Different Values based on multiple Criteria
    By jdodz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2014, 05:41 PM
  2. Counting Unique Values on Multiple Criteria
    By buhwheet in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-10-2014, 01:32 AM
  3. Counting unique values that meet multiple criteria
    By msworkman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2013, 11:15 PM
  4. [SOLVED] Counting Unique Values with Multiple Criteria
    By smwbuddy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-15-2013, 08:35 PM
  5. Counting Unique Values with Multiple Criteria
    By CELIA.NEFF in forum Excel General
    Replies: 10
    Last Post: 02-15-2012, 11:31 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