+ Reply to Thread
Results 1 to 3 of 3

Count values where unique in both columns

  1. #1
    Registered User
    Join Date
    12-20-2005
    Posts
    69

    Count values where unique in both columns

    Hi, I suspect that what I'm about to ask isn't possible to do but thought it was worth a try anyway. Basically, I've got two columns of data within a table. I would like a formula to count only the unique values in one field, but to make things more difficult I only want to count these values if the value in the corresponding field is also a unique value in its field. Is this possible to do without having to add an extra column to perform some calculations first? (this is something I would like to avoid as there are many records and it will slow the spreadsheet down a lot).

    Thanks in advance for any help, I hope I've explained myself clearly.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count values where unique in both columns

    Perhaps try:

    =SUMPRODUCT(--(COUNTIF(A1:A100,A1:A100&"")=1),--(COUNTIF(B1:B100,B1:B100&"")=1))

    change ranges to suit.

  3. #3
    Registered User
    Join Date
    12-20-2005
    Posts
    69

    Smile Re: Count values where unique in both columns

    Thanks, that seems to do the trick, haven't tested it properly but it looks like it's worked

+ Reply to Thread

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