+ Reply to Thread
Results 1 to 9 of 9

Count Unique occurances with 2 columns of data

  1. #1
    Registered User
    Join Date
    10-02-2013
    Location
    Leeds
    MS-Off Ver
    MS 365
    Posts
    23

    Count Unique occurances with 2 columns of data

    OK, so I know how to count unique values of a particular column. However what if i had once column contain systems and another with unqiue organisations

    say systems in column a and organisations in B

    What i want to do is know how many unique organisations are using say system A?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Count Unique occurances with 2 columns of data

    you are showing Excel version 2010 - is that still the version you are using

    a sample sheet may have helped here

    latest version you could use UNIQUE & FILTER
    =UNIQUE(FILTER(A1:B21,A1:A21=1))

    I have used 1 hardcoded - but the system could be a cell so it changes as you change cell

    Maybe a pivot table - would work in 2010 - i'll look if you are still using 2010
    EDIT _ I have added a pivot table - with a page filter

    Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

    A sample sheet would help here


    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Attached Files Attached Files
    Last edited by etaf; 11-01-2022 at 06:24 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    10-02-2013
    Location
    Leeds
    MS-Off Ver
    MS 365
    Posts
    23

    Re: Count Unique occurances with 2 columns of data

    Thank you for your help, please find attached. So say i want to know how many unique orgs sell bananas. Hope this helps
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Count Unique occurances with 2 columns of data

    what version of excel

  5. #5
    Registered User
    Join Date
    10-02-2013
    Location
    Leeds
    MS-Off Ver
    MS 365
    Posts
    23

    Re: Count Unique occurances with 2 columns of data

    MS 365 version 2209

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Count Unique occurances with 2 columns of data

    can you update the profile , to show the correct excel version, as it makes a lot of difference as to which functions are included

    the word banana has a space at the end , which i have removed - but could be included and the entry in I2 would need to have a space OR include the text

    =UNIQUE(FILTER(A2:B21,B2:B21=I2))

    I2 has banana in

    =UNIQUE(FILTER(A2:B21,B2:B21="banana"))
    OR
    with a space - as the data has
    =UNIQUE(FILTER(A2:B21,B2:B21="banana "))
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count Unique occurances with 2 columns of data

    One way:

    =COUNTA(UNIQUE(FILTER(A2:A8,TRIM(B2:B8)="Banana")))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    10-02-2013
    Location
    Leeds
    MS-Off Ver
    MS 365
    Posts
    23

    Re: Count Unique occurances with 2 columns of data

    Thank you all for your help.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count Unique occurances with 2 columns of data

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. How can I count the total number of unique occurances between two fields.
    By Olly Black in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-25-2018, 07:32 AM
  2. [SOLVED] Count unique occurances formula
    By lreed in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-21-2017, 07:29 PM
  3. [SOLVED] Count unique occurences in one column with unique occurances in another column
    By 21stCenturyLessons in forum Excel General
    Replies: 5
    Last Post: 07-12-2014, 08:44 AM
  4. [SOLVED] Count the number of unique values (occurances) in a range.
    By angelopc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-13-2013, 10:36 AM
  5. Replies: 5
    Last Post: 05-11-2012, 03:38 AM
  6. How to count unique occurances linking two columns
    By nebula786 in forum Excel General
    Replies: 1
    Last Post: 06-29-2007, 01:19 AM
  7. Count # of unique occurances
    By sharder in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2006, 12:45 AM

Tags for this Thread

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