+ Reply to Thread
Results 1 to 3 of 3

Count unique values with multiple criteria

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Count unique values with multiple criteria

    I'm trying to create a formula instead of a using a pivot table, which I know how to do for unique accounts and invoices per a date. I have the pivot table working in columns F thru I, but over in columns K thru N, I can't find any formula that will work. I tried playing with the Frequency formula, but I can't find a close enough example of the web. Can anyone help or let me know if that doesn't make any sense.

    It should count the unique Account or invoices based on the date and name.
    Attached Files Attached Files
    Last edited by Delta729; 10-01-2017 at 08:20 PM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,914

    Re: Count unique values with multiple criteria

    Try in M3:

    =SUM(IF((DataTbl[Name]=[@Name])*(DataTbl[Date]=[@Date]),1/COUNTIFS(DataTbl[Name],[@Name],DataTbl[Date],[@Date],DataTbl[Account],DataTbl[Account])))

    in N3:

    =SUM(IF((DataTbl[Name]=[@Name])*(DataTbl[Date]=[@Date]),1/COUNTIFS(DataTbl[Name],[@Name],DataTbl[Date],[@Date],DataTbl[Invoice],DataTbl[Invoice])))

    Enter with Ctrl+Shift+Enter.

  3. #3
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Count unique values with multiple criteria

    That works perfectly, thank you.

+ 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] Count unique values with multiple criteria
    By jake1912 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-27-2017, 01:15 AM
  2. Count unique values with multiple criteria from same column
    By AlexandraT in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-23-2015, 12:46 PM
  3. Count Unique Values with multiple criteria
    By TotallyLost in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2015, 10:24 AM
  4. Count Unique Values for Multiple Criteria
    By timjs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-03-2015, 10:09 AM
  5. Count unique values across 2 columns with multiple criteria
    By Skywalker01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2012, 08:04 AM
  6. Count Unique Values, but with multiple criteria
    By the northern monkey in forum Excel General
    Replies: 3
    Last Post: 02-02-2012, 07:45 AM
  7. Count Unique Values with Multiple Criteria
    By JohnV in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2006, 01: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