+ Reply to Thread
Results 1 to 5 of 5

Unique Number of Values Multiple Criteria

Hybrid View

pookyman Unique Number of Values... 08-28-2014, 06:58 PM
dizzle Re: Unique Number of Values... 08-28-2014, 07:49 PM
Tony Valko Re: Unique Number of Values... 08-28-2014, 08:05 PM
pookyman Re: Unique Number of Values... 08-28-2014, 09:07 PM
Tony Valko Re: Unique Number of Values... 08-28-2014, 09:12 PM
  1. #1
    Registered User
    Join Date
    07-19-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    15

    Unique Number of Values Multiple Criteria

    Hi, I'm trying to figure out a formula that would give me the unique number of values in column A based on multiple criteria:

    -A date range (greater than one day, less than one day) (Column B)
    -A certain value in column C
    -A certain value in column D

    I've searched through many topics but haven't been able to quite find the answer I want. Any help is much appreciated!

    Thanks!

  2. #2
    Registered User
    Join Date
    07-14-2010
    Location
    Seattle, WA
    MS-Off Ver
    PC 03/07/10 | Mac 08/11
    Posts
    43

    Re: Unique Number of Values Multiple Criteria

    Upload a sample work book please, it'll help us understand better.

    Thanks!

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique Number of Values Multiple Criteria

    I'm assuming that "values in column A" means numbers?

    Try something like this.

    Use cells to hold the criteria.

    F2 = start date
    G2 = end date
    H2 = column C criteria
    I2 = column D criteria

    Then, this array formula**:

    =SUM(IF(FREQUENCY(IF(B2:B15>=F2,IF(B2:B15<=G2,IF(C2:C15=H2,IF(D2:D15=I2,A2:A15)))),A2:A15),1))

    Adjust the ranges to suit.

    ** 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.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    07-19-2013
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Unique Number of Values Multiple Criteria

    Values in column A would be text

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Unique Number of Values Multiple Criteria

    This version will work on both text and numbers.

    Array entered**:

    =SUM(IF(FREQUENCY(IF(B2:B15>=F2,IF(B2:B15<=G2,IF(C2:C15=H2,IF(D2:D15=I2,MATCH(A2:A15,A2:A15,0))))),ROW(A2:A15)-ROW(A2)+1),1))

    ** 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.

+ 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 Number of Unique Values in a List based on Criteria
    By greencroft in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-03-2014, 04:00 AM
  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. count unique values in multiple worksheets with multiple criteria
    By craig04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2012, 03:26 PM
  4. Replies: 8
    Last Post: 07-13-2012, 06:00 AM
  5. Macro to remove duplicates values and keep unique values bases on multiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2011, 04:37 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