+ Reply to Thread
Results 1 to 4 of 4

Count uniques within duplicates

  1. #1
    Registered User
    Join Date
    08-20-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2011
    Posts
    2

    Count uniques within duplicates

    Name Product Drink # of Products # of Unique Drinks
    Joe Sandwich Coke 2
    Joe Sandwich Diet 2
    Jack Salad Coke 2
    Jack Dessert Coke 2
    Jane Sandwich Coke 3
    Jane Salad Coke 3
    Jane Dessert Diet 3
    Hi,

    I am looking to count the # of unique entries that show up only among duplicates.

    Example:
    Screen Shot 2013-01-24 at 1.03.47 PM.png

    I'm trying to get the # of unique drinks that each person has? Joe should show 2 (coke and diet), Jack should show 1 (just coke) and Jane should show 2(coke and diet).
    Thank you in advance.
    Last edited by ckramer; 01-24-2013 at 02:07 PM. Reason: added example

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Count uniques within duplicates

    ARRAY formula in E2 (from your screenshot), drag-filled down:

    Please Login or Register  to view this content.
    solution to a similar issue here:

    http://www.excelforum.com/showthread...=1#post3088377

    UPDATED 25JAN13:

    with attachment...
    Attached Files Attached Files
    Last edited by icestationzbra; 01-25-2013 at 02:58 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Registered User
    Join Date
    08-20-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2011
    Posts
    2

    Re: Count uniques within duplicates

    Formula works for small spreadsheet, but when applying it to a 8000 rows sheet, excel poops out. Any advice on how to make it work? Excel for mac 2011

  4. #4
    Registered User
    Join Date
    07-09-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Count uniques within duplicates

    =SUM(1/COUNTIF(Range,Range)). Press Ctrl-Shift-Enter.

+ 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