+ Reply to Thread
Results 1 to 7 of 7

Counting unique text values based on criteria

  1. #1
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Counting unique text values based on criteria

    Hello.

    I created a super-simple spreadsheet with two tabs to highlight my challenge. I have a source sheet and a destination sheet. The source sheet shows status groups, with various people's names next to each line within each group. On the destination sheet (where I need the calculation to happen), I have a summary where I want to show the number of unique names for each group. The destination sheet doesn't have details of the names -- simply a number showing how many unique names show for each group. Any thoughts?

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Counting unique text values based on criteria

    copy paste below in b6 and enter
    =SUM(IF(FREQUENCY(MATCH(INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)):INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)+COUNTIF(Source!$A$6:$A$26,Destination!$A5)-1),INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)):INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)+COUNTIF(Source!$A$6:$A$26,Destination!$A5)-1),0),MATCH(INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)):INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)+COUNTIF(Source!$A$6:$A$26,Destination!$A5)-1),INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)):INDEX(Source!$B$6:$B$26,MATCH(Destination!$A5,Source!$A$6:$A$26,0)+COUNTIF(Source!$A$6:$A$26,Destination!$A5)-1),0))>=1,1,0))
    Attached Files Attached Files
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Counting unique text values based on criteria

    Here you go.

    Please note that formula is in ARRAY.
    Last edited by dluhut; 02-28-2014 at 03:38 PM.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Counting unique text values based on criteria

    Hi,

    This looks like a Pivot Table problem to me. See the attached where I've done it using a PT. No formulas needed.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Counting unique text values based on criteria

    Quote Originally Posted by MarvinP View Post
    Hi,

    This looks like a Pivot Table problem to me. See the attached where I've done it using a PT. No formulas needed.
    Hey Marvin,

    At first I thought of using Pivot Tables too...but I just can't get the "UNIQUE" count under each Loan status

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Counting unique text values based on criteria

    Try this one with some helper columns then.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: Counting unique text values based on criteria

    Gang, thank you so much for the help! the three of you have collectively solved my problem, and it's greatly appreciated. I'll make sure to mark this as solved, and add to your "reputations" through the star button. Thanks again!!

+ 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 Unique/Different Values based on multiple Criteria
    By jdodz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2014, 05:41 PM
  2. Counting Unique text in column B based on a criteria from column a
    By clocmasta in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2013, 06:40 PM
  3. Counting Unique Values based on several criteria
    By GowHow in forum Excel General
    Replies: 2
    Last Post: 04-25-2012, 10:16 PM
  4. Replies: 0
    Last Post: 03-08-2012, 12:18 PM
  5. Replies: 6
    Last Post: 10-18-2011, 07:34 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