+ Reply to Thread
Results 1 to 7 of 7

Unique counts of a values/logins per day

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Unique counts of a values/logins per day

    I have a pretty simple spreadsheet with two columns. In Column A is a unique identifier for a user (608901, 505141, etc.). In Column B is a date the user logged in (5/1/2014). For a week's span there are about 25k rows.

    Users can and do log in multiple times per day creating duplicate entries for a single day (680717 might show up 3 times for 5/1/2014). What I need to figure out is how to get a count of all unique logins per day. So if 680717 in previous example logged in 80 times on 5/1/2014, that only counts as 1 unique login for 5/1/2014.

    I'm at a freakin loss with this. Searched everywhere and just can't get it.

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Unique counts of a values/logins per day

    If you highlight both columns, you can use the "Remove Duplicates" option under Data.

    Alternatively, another option would be to concatenate the two values. So that you're left with a horrible looking 6089015/1/2014. What you can then do with that value is to just do a simple Countif() function across the entire set of data, which will highlight multiple hits per day for deletion.

    Editted to add: In Excel 2003, you may need to use an Advanced Filter for Unique Results only. As long as Both fields are highlighted, it should treat A1&B1 as a unique value, rather than only unique values in A:A and only unique values in B:B
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Unique counts of a values/logins per day

    Looks like a pivot table, can help you get the desired result.

    A small excel will help you getting an better answer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Unique counts of a values/logins per day

    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Unique counts of a values/logins per day

    Quote Originally Posted by Miraun View Post
    If you highlight both columns, you can use the "Remove Duplicates" option under Data.

    Alternatively, another option would be to concatenate the two values. So that you're left with a horrible looking 6089015/1/2014. What you can then do with that value is to just do a simple Countif() function across the entire set of data, which will highlight multiple hits per day for deletion.

    Editted to add: In Excel 2003, you may need to use an Advanced Filter for Unique Results only. As long as Both fields are highlighted, it should treat A1&B1 as a unique value, rather than only unique values in A:A and only unique values in B:B
    That's a good idea about concatenating the columns. Then I could just separate them and get the unique values.

    So if I highlight both columns and use Remove Duplicates, it will only remove those instances where two cells in the same row are the same? It won't for instance remove all instances of 5/1/2014 or 680717?

  6. #6
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Unique counts of a values/logins per day

    Quote Originally Posted by oeldere View Post
    Looks like a pivot table, can help you get the desired result.

    A small excel will help you getting an better answer.
    I looked into using a PT but I was under the impression I had to assign a count to each occurrence/row before doing that. Basically, I'd have to give a count of 1 to the unique combination of ID and Date and 0 to any duplicates. I know you can remove duplicates in the PT but wasn't sure that accomplished what I needed. Can you provide a link to what you are suggesting to study up on?

  7. #7
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Unique counts of a values/logins per day

    Quote Originally Posted by tylercweinrich View Post
    That's a good idea about concatenating the columns. Then I could just separate them and get the unique values.

    So if I highlight both columns and use Remove Duplicates, it will only remove those instances where two cells in the same row are the same? It won't for instance remove all instances of 5/1/2014 or 680717?
    Correct. Although, I'd recommend working off of a clone of the data... just in case!

+ 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. Formula that counts number of unique text values if it meets criteria
    By ruledwritingpaper in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2014, 02:57 PM
  2. Formula that counts unique values within a criteria
    By GRACEROUHANA in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-03-2013, 01:20 PM
  3. Counts unique values per dates
    By albert28 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2013, 06:10 AM
  4. Unique formula that also counts non-unique once
    By jvbeats in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2013, 02:38 PM
  5. Counts of unique values with multiple criteria
    By ChristiaanV in forum Excel General
    Replies: 4
    Last Post: 03-09-2011, 12:47 AM

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