+ Reply to Thread
Results 1 to 7 of 7

unique count formula with 2 conditions

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    954

    unique count formula with 2 conditions

    Hello, I am looking for some help with a unique count formula problem which now requires two conditions. I was using the following formula:
    Please Login or Register  to view this content.
    This formula counts non duplicates account numbers in column A, which I still need my formula to do, but now I need it to do an additional condition. I need it to now look at column J3 down and subtract any cells that are blank and/or have a value of zero in them. To complicate this even more is that because there are duplicate accounts in column A, they may have a value over zero in one cell affiliated with that account and the duplicate account(s) have a blank or zero in column J. The formula would have to know the sum of those similar accounts and if they have a sum over zero then it wouldn't affect the unique count summary. Hopefully my sample file will explain better. Appreciate your time and assistance with this issue.
    Attached Files Attached Files
    Last edited by lilsnoop; 01-17-2021 at 11:12 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: unique count formula with 2 conditions

    try this array formula:
    =SUM(IF(FREQUENCY(IF(J3:J331>0,MATCH(A3:A331,A3:A331,0)),ROW(A3:A331)-ROW(A3)+1)>0,1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    954

    Re: unique count formula with 2 conditions

    benishiryo-Thank you so much! That is exactly what I needed!

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: unique count formula with 2 conditions

    Try:

    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Quang PT

  5. #5
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    954

    Re: unique count formula with 2 conditions

    Thanks bebo021999!

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: unique count formula with 2 conditions

    Another one

    =COUNT(1/FREQUENCY(IF(J3:J333,MATCH(A3:A333,A3:A333,)),ROW(A1:A333)))

    Ctrl+Shift+Enter

  7. #7
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2016
    Posts
    954

    Re: unique count formula with 2 conditions

    Thanks Bo_Ry! I really appreciate the formula options!

+ 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. count unique with conditions
    By Domenic in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 07:05 AM
  2. count unique with conditions
    By Domenic in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-06-2005, 04:05 AM
  3. count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] count unique with conditions
    By \ditzman via OfficeKB.com\ in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-08-2005, 07:41 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