+ Reply to Thread
Results 1 to 4 of 4

COUNTIF Unique Values

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    Framingham, MA
    MS-Off Ver
    Excel 2007
    Posts
    5

    COUNTIF Unique Values

    Good Morning,

    I am in need of direction in building a formula to count the number of unique values in column A corresponding with the value in Column B.

    Column B contains a list of values identifying a specific person. Column A contains a list of locations they have been. I need column C to list how many unique locations they have been.

    In the picture example below for instance. Column C for Identifier "9994" would be 2.

    1-16-2014 10-33-51 AM.jpg

    Thank you in advance.

  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: COUNTIF Unique Values

    Try this array formula**

    =SUM(IF(FREQUENCY(IF(B$2:B$18=B2,MATCH(A$2:A$18,A$2:A$18,0)),ROW(A$2:A$18)-ROW(A$2)+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.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-17-2013
    Location
    Framingham, MA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: COUNTIF Unique Values

    That was perfect! Thank you sir!

  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: COUNTIF Unique Values

    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. [SOLVED] countif values is unique in a range
    By hluk in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 12-14-2012, 11:23 PM
  2. [SOLVED] COUNTIF Unique values
    By afvassis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2012, 12:22 PM
  3. [SOLVED] convert formulas to vba - countif and find unique values
    By emm8080 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-16-2012, 11:49 AM
  4. [SOLVED] Countif unique values (only cells with numbers)
    By Davzx in forum Excel General
    Replies: 7
    Last Post: 06-27-2012, 12:39 PM
  5. Replies: 8
    Last Post: 02-21-2012, 11:11 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