+ Reply to Thread
Results 1 to 4 of 4

Counting unique values given criteria

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Connecticut, U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    52

    Counting unique values given criteria

    I'm trying to come up with a formula that will count the number of unique values, given a team and the dates of games played.

    I have teams in Column A and dates in column K.

    As an example, Team ATL has a total of 105 rows for every player on its team who has played a game since the start of the season. If I visually count the unique number of games using the date column (K), I count 10 games so far. I'm trying to get that count in a formula. I'm not concerned about a date range, if that helps.

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

    Re: Counting unique values given criteria

    Try this...

    Data Range
    A
    B
    C
    D
    E
    2
    Team1
    1/1/2014
    ------
    Team1
    3
    3
    Team1
    1/1/2014
    Team2
    3
    4
    Team1
    1/1/2014
    Team3
    1
    5
    Team1
    5/10/2014
    6
    Team1
    7/4/2014
    7
    Team1
    7/4/2014
    8
    Team1
    7/4/2014
    9
    Team1
    7/4/2014
    10
    Team2
    1/1/2014
    11
    Team2
    3/13/2014
    12
    Team2
    6/27/2014
    13
    Team3
    8/4/2014
    14
    Team3
    8/4/2014
    15
    Team3
    8/4/2014


    This array formula** entered in E2 and copied down:

    =SUM(IF(FREQUENCY(IF(A$2:A$15=D2,B$2:B$15),B$2:B$15),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.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-21-2014
    Location
    Connecticut, U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Counting unique values given criteria

    Awesome, thx Tony

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

    Re: Counting unique values given criteria

    You're welcome. Thanks for the feedback!

+ 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. Help counting unique values with another criteria
    By sigma87 in forum Excel General
    Replies: 2
    Last Post: 06-26-2013, 05:52 AM
  2. Counting Unique Values Given Criteria
    By Domenic in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 05:05 PM
  3. Counting Unique Values Given Criteria
    By carl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  4. Counting Unique Values Given Criteria
    By Domenic in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Counting Unique Values Given Criteria
    By carl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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