+ Reply to Thread
Results 1 to 8 of 8

Count the number of unique items (multiple columns)

  1. #1
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Count the number of unique items (multiple columns)

    I have looked and the only reference I can find is how to count the number of unique items in a single column. The most common solution is "sum(1/Countif(range, range))" using an array scenario. However I actually need to look at three different columns and "weed" out all the duplications across all three at the same time. Is there a way to use Countifs in this scenario? I have tried it 3-4 ways and cannot get it to work. Or, does anyone know of a solution that will work? Thanks!

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Count the number of unique items (multiple columns)

    Unique or distinct items please?

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Count the number of unique items (multiple columns)

    Do you mean three consecutive columns? If so you could use the type of approach you suggested....or do you have 3 discontiguous columns?
    Audere est facere

  4. #4
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: Count the number of unique items (multiple columns)

    Daddy, yes in 3 consecutive columns I have tried:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    both fail, the latter with #Div/0!

    Pepe, Unique items... if I am understanding you correctly.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Count the number of unique items (multiple columns)

    Many people talk about "counting unique" when they really mean counting distinct items. Taken literally "counting unique" within this dataset:

    banana
    banana
    apple
    apple
    apple
    orange

    would give a result of 1 (orange is the only unique item)

    but I assume you want to count distinct, in which case the result is 3 for that example

    Can you clarify exactly what you want to do in your scenario? - you seem to be using criteria like "*aging" and sheet3!G24

    Are you trying to count distinct items but only when other criteria apply?

    If you want to count distinct items in column Q where the criteria apply in the other two columns then is is probably the most efficient way to do that:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    confirmed with CTRL+SHIFT+ENTER

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Count the number of unique items (multiple columns)

    At last I see someone who agrees with me...

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Count the number of unique items (multiple columns)

    I attach herewith a small samle for extracting unique items from 3 columns
    Attached Files Attached Files
    Quang PT

  8. #8
    Registered User
    Join Date
    07-18-2014
    Location
    Atlanta, GA
    MS-Off Ver
    10
    Posts
    65

    Re: Count the number of unique items (multiple columns)

    Daddy... that was dead on! I was on another one of the "boss man" agendas and just back to this one... I appreciate the help from each one of you as well

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Count Unique Items, Based on Multiple Variables - Excel 2007
    By Joe Frenger in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2014, 03:13 AM
  2. Creating Summary Sheet on Unique items (multiple columns) using VBA
    By EXCEL0429 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-22-2013, 09:55 PM
  3. Replies: 2
    Last Post: 09-26-2012, 01:41 PM
  4. Replies: 10
    Last Post: 03-25-2009, 10:09 PM
  5. Count number of unique items in a column that contains duplicates
    By Steembeem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2005, 09:06 PM

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