+ Reply to Thread
Results 1 to 20 of 20

Google Sheets: Excel count unique by date

  1. #1
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8

    Question Google Sheets: Excel count unique by date

    How do I count only unique tickets from DATA column A?

    What would the formula need to be for SUMMARY cell B3?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by AliGW; 04-01-2018 at 04:52 PM.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel count unique by date

    Try PivotTable with DataModel then select CountUnique

  3. #3
    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: Excel count unique by date

    If you don't want to use a pivot table, these formulae will do what you want:

    Unique Values =SUM(IF(FREQUENCY(IF($B$2:$B$7=D2,$A$2:$A$7),$A$2:$A$7)>0,1))

    All Cases =COUNTIFS($A$2:$A$7,"<>",$B$2:$B$7,D2)

    where D2 contains the date you are testing for.
    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.

  4. #4
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8

    Question Re: Excel count unique by date

    AliGW: Thank you, the formula is what I was hoping for. I added to my SS but the counts are 0. What could be wrong?

    =SUM(IF(FREQUENCY(IF('Ticket Tracker'!$G$2:$G$1000=A3,'Ticket Tracker'!$A$2:$A$1000),'Ticket Tracker'!$A$2:$A$1000)>0,1))

  5. #5
    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: Excel count unique by date

    It works fine here with your sample data. Attach your workbook here and I will have a look.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  6. #6
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8

    Re: Excel count unique by date

    Workbook is attached. "excel forum.xlsx" Thanks for your help.

  7. #7
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Excel count unique by date

    No attachment.

  8. #8
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8

    Re: Excel count unique by date

    Attachment
    Attached Files Attached Files

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Excel count unique by date

    continue from post#2

    is that what you want?
    Attached Files Attached Files

  10. #10
    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: Excel count unique by date

    Your sample data contained numbers, which is what I devised the solution for, but the real data contains text. Try this instead:

    =SUM(IF(A3='Ticket Tracker'!$G$2:$G$1000,1/(COUNTIFS('Ticket Tracker'!$G$2:$G$1000,A3,'Ticket Tracker'!$A$2:$A$1000,'Ticket Tracker'!$A$2:$A$1000)),0))

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  11. #11
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8

    Re: Excel count unique by date

    AliGW: I added the revised formula and it didn't seem to work.

    Sandy666: Those are the numbers I am expecting to see what how are you doing this? What's the formula?

  12. #12
    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: Excel count unique by date

    Well, it works on your latest sample data. What else haven't you told us? By the way, "didn't seem to work" isn't really very helpful: in what way did it not work? As we have no expected outcomes, it's hard to know exactly what you are expecting.
    Attached Files Attached Files
    Last edited by AliGW; 03-26-2018 at 10:28 AM.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel count unique by date

    select whole data in your source (column A & B - data only)
    insert - PivotTable
    then...

    cpt.jpg

    then add Date to Rows area

    add ZD Ticket to Values area twice then for the first select

    dc.jpg

    for the second simply Count

    edit:
    If you doesn't see checkbox DataModel you will need to install PowerPivot add-in from MS site
    and make your profile easier to read: 2010 not 10 or another real version
    Last edited by sandy666; 03-26-2018 at 10:52 AM. Reason: see edit

  14. #14
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8
    Quote Originally Posted by AliGW View Post
    Well, it works on your latest sample data. What else haven't you told us? By the way, "didn't seem to work" isn't really very helpful: in what way did it not work? As we have no expected outcomes, it's hard to know exactly what you are expecting.
    The workbook is exact minus any sensitive data. The columns for the needed formula are untouched other than the link path to read test dot com.

  15. #15
    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: Excel count unique by date

    Have you looked at it working on your data? I attached it to my last post.

  16. #16
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8

    Re: Excel count unique by date

    AliGW: Needed to add =ARRAY_CONSTRAIN(ARRAYFORMULA(...

    How would I add? =ArrayFormula(IF(NOT(ISBLANK(A2:A)),...,""))

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel count unique by date

    @post#16
    this is google sheet not excel

  18. #18
    Registered User
    Join Date
    03-24-2018
    Location
    San Francisco
    MS-Off Ver
    10
    Posts
    8

    Re: Excel count unique by date

    Yes, converted it to gSheet once I got it working. Now I just need to do the ArrayFormula.

    =ARRAY_CONSTRAIN(ARRAYFORMULA(SUM(IF(A4='Ticket Tracker'!$I$2:$I$1000,1/(COUNTIFS('Ticket Tracker'!$I$2:$I$1000,A4,'Ticket Tracker'!$A$2:$A$1000,'Ticket Tracker'!$A$2:$A$1000)),0))), 1, 1)

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Excel count unique by date

    so try here with new thread:

    For Other Platforms(Mac, Google Docs, Mobile OS etc)

    and update your profile about excel version: 10 to me is windows 10 not an any excel version

  20. #20
    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: Excel count unique by date

    Please do NOT start a new thread - this one has been moved.

    It would have helped from the outset if you had mentioned that you wanted this for Google Sheets: my solutions were for Excel.

+ 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 date from two columns
    By TK2013 in forum Excel General
    Replies: 10
    Last Post: 08-16-2016, 04:26 AM
  2. [SOLVED] Count Unique Instances of Date while filtering based upon date and ID #
    By pmambrosetti in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2014, 02:22 PM
  3. Count Unique Values On a Certain Date?
    By connor_5 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2013, 02:39 PM
  4. Replies: 0
    Last Post: 03-22-2012, 08:44 PM
  5. Count Unique text against another unique text prior to todays date
    By VBSK8R in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-22-2011, 11:24 AM
  6. Count of unique items by date
    By gren in forum Excel General
    Replies: 0
    Last Post: 11-01-2011, 11:13 AM
  7. Count Unique based on date
    By dab1988 in forum Excel General
    Replies: 14
    Last Post: 08-25-2011, 08:17 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