+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Count distinct using multiple criteria

  1. #1
    Registered User
    Join Date
    12-17-2009
    Location
    Seattle
    MS-Off Ver
    Excel 2007
    Posts
    2

    Smile Count distinct using multiple criteria

    Hello,

    I am trying to count unique accounts in a worksheet based on multiple criteria.

    ACCT ORDER APPROVED INVOICED AMT
    acct a order 1 1 1 100
    acct a order 2 1 1 200
    acct a order 3 1 1 300
    acct a order 4 1 0 400
    acct b order 1 1 1 100
    acct b order 2 1 1 200
    acct b order 3 1 1 300
    acct b order 4 1 0 400
    acct c order 1 0 1 100
    acct c order 2 1 1 10
    acct c order 3 0 1 300
    acct c order 4 1 0 400


    The criteria are: APPROVED must equal 1, INVOICED must equal 1, and AMT must be greater than 25. If those conditions are met, I would like the account to be counted, but only once (i.e. not each time the ORDER meets that criteria). In this example, I should end up with 2.

    Can someone help me with this formula? I think it involves nesting IF statements within an array, but I haven't been able to get it.

    Thanks in advance for the assistance!
    Last edited by ExcelinginSeattle; 12-17-2009 at 02:58 PM. Reason: Solved!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count distinct using multiple criteria

    Your profile states 2003 yet this is posted in 2007 forum.

    You can perhaps use something like:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-17-2009
    Location
    Seattle
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Count distinct using multiple criteria

    THANK YOU SOOOO MUCH!!! This is great!

    Also, thanks for pointing out my profile is incorrect - I just registered and will obviously need to change the default.

    I appreciate your username pun as well

    Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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