+ Reply to Thread
Results 1 to 5 of 5

Counting and Unique values

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Counting and Unique values

    Hi

    I have 2 sheets, one with users and a tool they have been using, and one with a list of unique users, I would like to count how many unique users are using a tool. The sheets are set up like so,

    Sheet 1
    User Tool (number of uses)
    abcdefg 1
    hijklmn 5
    1234567 1
    1234567, abcdefg, opqurst 2
    wxyz123 0

    Sheet 2 Have they used the tool

    abcdefg
    hijklmn
    1234567
    wxyz123
    opqurst

    So yes, I am trying to count whether or not the unique users have used the tool, this is a simplifed version as my data set runs into the thousands. I was using the countifs function, but that doesnt count properly if theres more than one user in the group. Can anyone help me please?

  2. #2
    Registered User
    Join Date
    09-27-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007, 2010, 2013
    Posts
    11

    Re: Counting and Unique values

    You can use wildcards in the countif function. For example, if the username is in cell A1 then:

    =COUNTIF(Sheet1!A1:A5000,"*"&A1&"*")
    Stefan Kemp
    Excel Developers Ltd

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Counting and Unique values

    maybe something like:
    =SUM(IF(SUMIF(Sheet1!A1:A5,Sheet2!D1:D5,Sheet1!B1:B5)>0,1,0))
    as an array formula (confirm with ctrl+shift+enter).

    Where A1:A5 is your list of users in sheet1 and b1:B5 is the number of times they used the tool. D1:D5 is your list of unique users.

  4. #4
    Registered User
    Join Date
    01-21-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Counting and Unique values

    Hi

    Thanks for the help so far, neither of those solutions seem to work. The formula I have been using is
    =COUNTIFS(Sheet1!$F$2:Sheet1!$F$3705,Sheet3!$A6,Sheet1!$R$2:Sheet1!$R$3705,">=1")

    where Sheet1 F2;F3705 is my list of users in sheet 1, A6 is the unique user I am trying to find the data for in sheet 3, and Sheet 1 R2:R3705 is the number of times they used thetool. I simply drag the formula down to check against all users as the Sheet3 term changes.

    Any further tips?

  5. #5
    Registered User
    Join Date
    01-21-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Counting and Unique values

    Never mind I got it to work, thanks for your 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. [SOLVED] counting unique values in col A against unique value in column B
    By greyscale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 08:43 AM
  2. Replies: 2
    Last Post: 06-06-2012, 01:44 PM
  3. Replies: 0
    Last Post: 03-08-2012, 12:18 PM
  4. Counting unique values
    By Jogier505 in forum Excel General
    Replies: 3
    Last Post: 02-14-2011, 04:55 PM
  5. Counting Unique Values
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 50
    Last Post: 09-06-2005, 06:05 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