Results 1 to 4 of 4

Count unique text values in range with criteria

Threaded View

cdiaz Count unique text values in... 07-13-2011, 08:34 PM
cdiaz Re: Count unique text values... 07-14-2011, 12:39 PM
cdiaz Re: Count unique text values... 07-14-2011, 01:02 PM
cdiaz Re: Count unique text values... 07-15-2011, 10:43 AM
  1. #1
    Registered User
    Join Date
    06-02-2011
    Location
    Arizona, United States
    MS-Off Ver
    Excel 2007
    Posts
    14

    Count unique text values in range with criteria

    Hello,

    I am trying to count the number of unique values in a range (four columns wide, called Name One through Name Four) based on some criteria (currently just the Year). The problem is that my values are in text format so I can't do this:

    =SUM(IF(FREQUENCY(IF((Table1[[Name One]:[Name Four]]<>"")*(Table1[Year]=A13),Table1[[Name One]:[Name Four]],""), IF((Table1[[Name One]:[Name Four]]<>"")*(Table1[Year]=A13),Table1[[Name One]:[Name Four]],""))>0,1,0))
    So this is what I am trying:

    =SUM(IF(FREQUENCY(IF((LEN(Table1[[Name One]:[Name Four]])>0)*(Table1[Year]=A13),MATCH(Table1[[Name One]:[Name Four]],Table1[[Name One]:[Name Four]],0),""), IF((LEN(Table1[[Name One]:[Name Four]])>0)*(Table1[Year]=A13),MATCH(Table1[[Name One]:[Name Four]],Table1[[Name One]:[Name Four]],0),""))>0,1,0))
    But this second formula doesn't work, seemingly because the range in the Match function is a range that has more than one column.

    These formulas I have tried came from Microsoft's Excel Help. Any ideas on what formula I should try instead?

    I attached a sample, but it's not very pretty.

    Thanks

    -**-
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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