+ Reply to Thread
Results 1 to 7 of 7

Counting Certain Unique Values

Hybrid View

  1. #1
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting Certain Unique Values

    Some pieces of equipment have 2 entries (both of which will say rehab, defect, readiness ot whatever)
    so if its rehab and readines does that get counted or not? do you see the problem? also how is the barcode entered in what format? i think you need to post an example
    take
    123456 Rehab
    123456 Defect
    123456
    456789
    456789
    456789
    654321 Defect
    654321 Rehab
    so is the count unique of above 1 or 2 ie 456789 is th only number not to have Rehab/Defect
    so count is one
    or 123456 is counted as one instance does not have Rehab/Defect
    so count is 2
    Last edited by martindwilson; 07-12-2010 at 04:41 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  2. #2
    Registered User
    Join Date
    07-09-2010
    Location
    Reading
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Counting Certain Unique Values

    Everything unique value would need to be counted Exept Rehab and defects so,

    example:
    OS14557 Rehab
    OS14557 Rehab
    OS75009 Ready
    OS02221 Defect
    OS75565 Ready
    OS75565 Ready
    OS11155 Project
    OS16234
    OS56643 TBC

    So in this example I would want a value of 5 to be returned.

    This being so I thinnk I've sorted out a work around

    =SUMPRODUCT(((B3:B850<>"")*((K3:K850="Rehab")+(K3:K850="Defect")))/COUNTIF(B3:B850,B3:B850&""))

    by using this formula I can count the number of unique rehab + defect instances and then take it away from the total number of unique items. It's a little bit untidy but seems to work well.

    thanks for your help guys.

+ 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