Results 1 to 17 of 17

Counting Unique Variables WITH Exceptions

Threaded View

pjd2011 Counting Unique Variables... 06-26-2013, 01:34 PM
oeldere Re: Counting Unique Variables... 06-26-2013, 02:28 PM
pjd2011 Re: Counting Unique Variables... 06-26-2013, 03:05 PM
oeldere Re: Counting Unique Variables... 06-26-2013, 03:07 PM
pjd2011 Re: Counting Unique Variables... 06-26-2013, 03:51 PM
Tony Valko Re: Counting Unique Variables... 06-26-2013, 04:33 PM
pjd2011 Re: Counting Unique Variables... 06-27-2013, 09:20 AM
oeldere Re: Counting Unique Variables... 06-26-2013, 04:21 PM
newdoverman Re: Counting Unique Variables... 06-27-2013, 09:32 AM
pjd2011 Re: Counting Unique Variables... 06-27-2013, 10:39 AM
pjd2011 Re: Counting Unique Variables... 06-28-2013, 09:29 AM
newdoverman Re: Counting Unique Variables... 06-28-2013, 10:43 AM
pjd2011 Re: Counting Unique Variables... 06-28-2013, 01:03 PM
  1. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Counting Unique Variables WITH Exceptions

    Part of your conditions are contradictory. "The function would count how many times a variable occurs only once - even if repeated" How can something only occur once and be repeated?

    My best guess at what you want is as follows:

    On the Result tab change the entries in column A to Blue, Red, Yellow. Enter this formula where you want the answer. (Column B?) and copy down the length of your data.

    Formula: copy to clipboard
    =SUMPRODUCT(--(Info!$A$1:$A$12=A1),--(Info!$B$1:$B$12<>""))


    Another way of looking at this enter this formula instead which will count all Duplicate combinations as 1 and count each unique value (up to 4) as 1.

    Formula: copy to clipboard
    =IF(COUNTIFS(Info!$A$1:$A$12,A1,Info!$B$1:$B$12,"")>=1,1,0)+IF(COUNTIFS(Info!$A$1:$A$12,A1,Info!$B$1:$B$12,1)>=1,1,0)+IF(COUNTIFS(Info!$A$1:$A$12,$A$1,Info!$B$1:$B$12,2)>=1,1,0)+IF(COUNTIFS(Info!$A$1:$A$12,A1,Info!$B$1:$B$12,3)>=1,1,0)+IF(COUNTIFS(Info!$A$1:$A$12,A1,Info!$B$1:$B$12,4)>=1,1,0)
    Last edited by newdoverman; 06-27-2013 at 10:16 AM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

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