+ Reply to Thread
Results 1 to 3 of 3

Counting Unique values

  1. #1
    Registered User
    Join Date
    02-23-2016
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    65

    Counting Unique values

    Hi,

    Can anyone please help me with a formula to count the unique values. In the attached excel, I want to have the unique value under each category. The excel has the expected results as well.

    I want values "1" in Cell C2. This represents that for ABC client and under A&M sector, only 1 unique sub sector was engaged. However, for cell D2, the expected value is "1" as for ABC and under HC sector, only 1 sub sector has been engaged.

    Please help!!!
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Counting Unique values

    =SUM(--(FREQUENCY(IF((Data!$D$2:$D$14=$B2)*(Data!$E$2:$E$14=C$1),MATCH(Data!$F$2:$F$14,Data!$F$2:$F$14,)),ROW(Data!$E$2:$E$14)-2)>0)) as array formula

  3. #3
    Registered User
    Join Date
    02-23-2016
    Location
    Bangalore
    MS-Off Ver
    2010
    Posts
    65

    Re: Counting Unique values

    Quote Originally Posted by tim201110 View Post
    =SUM(--(FREQUENCY(IF((Data!$D$2:$D$14=$B2)*(Data!$E$2:$E$14=C$1),MATCH(Data!$F$2:$F$14,Data!$F$2:$F$14,)),ROW(Data!$E$2:$E$14)-2)>0)) as array formula
    Thank you so much.. this works perfectly well.

+ 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. Counting Unique Values
    By thanny88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-22-2017, 10:32 AM
  2. [SOLVED] counting unique values
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 09-15-2014, 03:20 PM
  3. Counting and Unique values
    By lcame in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-21-2014, 02:40 PM
  4. [SOLVED] counting unique values in col A against unique value in column B
    By greyscale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 08:43 AM
  5. Replies: 2
    Last Post: 06-06-2012, 01:44 PM
  6. Replies: 0
    Last Post: 03-08-2012, 12:18 PM
  7. Counting Unique Values
    By carl in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01: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