+ Reply to Thread
Results 1 to 4 of 4

Unique value count based on multiple criteria

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    11

    Unique value count based on multiple criteria

    Hi guys,

    I tried several ways to tackle my problem but none of them seem to work... I hope some of you can help!

    I have an attached example sheet which shows values in Column A; these values can be unique or the same.
    I have found a working formula to count how many unique values the range in Column A has. For this I use;

    Please Login or Register  to view this content.
    which does the job just fine.

    Now I would like the formula to check if there is a 1 present in Column G(CountOrders).
    If this criteria is not met, I would like the formula to filter this out and not add the unique value in Column A(CostumerNR) to the total count.

    How would I manage to do so?

    Thanks in advanced for your help!

    Greets

    Example.xlsx

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Unique value count based on multiple criteria

    Hi,

    Change it to this array formula:

    =SUM(IF(FREQUENCY(IF(G10:G157=1,Orders!A10:A157),IF(G10:G157=1,Orders!A10:A157))>0,1))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    05-17-2013
    Location
    Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Unique value count based on multiple criteria

    Thanks a bunch!!!

    I should read up on array formulas....

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Unique value count based on multiple criteria

    There's probably a non-array solution, but hey, it's only one cell!

    And you're welcome.

+ 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 to count Unique text based on multiple criteria
    By OAMPS in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-14-2012, 10:48 AM
  2. Replies: 10
    Last Post: 03-25-2009, 10:09 PM
  3. [SOLVED] how to count unique values in excel based on multiple criteria
    By IDBUGM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2006, 12: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