+ Reply to Thread
Results 1 to 10 of 10

Count If help with Unique Dates

  1. #1
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Count If help with Unique Dates

    Hi,

    Thank you in advance for some expert help! I'm completely stuck, as I'm looking to Count unique dates with an IF formula that basically works into the formula specific customers. I have attached a sample spreadsheet with minimal data, and highlighted in yellow the cell where I'm looking for this formula. I hope it's clear in there the data I'm looking for.

    Thanks again in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Count If help with Unique Dates

    Try

    =SUM(IF(A2=Sheet1!A2:A112,1/(COUNTIFS(Sheet1!$A$2:$A$112,A2,Sheet1!$I$2:$I$112,Sheet1!$I$2:$I$112)),0))


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

  3. #3
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Count If help with Unique Dates

    Thank you John, that worked a treat. Much appreciated.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Count If help with Unique Dates

    You're welcome.


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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

  5. #5
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Count If help with Unique Dates

    Hi John, sorry to ask another question, but whilst this formula is working, in my main spreadsheet it's taking forever to update. I've copied and pasted values for every other area of the spreadsheet to minimise the file size, and ensured data is selected onto from specific cell ranges and not entire columns, but it's still taking forever. I can potentially cut down the calculation sizes and do it in chunks, but before I do that I wondered if there is another version of this formula that would potentially reduce the calculation size/times at all? Many thanks

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Count If help with Unique Dates

    How many rows?

  7. #7
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Count If help with Unique Dates

    Hi John,
    Sheet 1 has over 70,000 rows which the data is looking up from. Sheet 2 has 16,000 rows where the data needs pulling into.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Count If help with Unique Dates

    Try

    =SUM(IF(FREQUENCY(IF(Sheet1!$A$2:$A$112=A2,Sheet1!$G$2:$G$112),Sheet1!$G$2:$G$112),1))

    Array formula

    This returns 17 for your test file which is correct: the COUNTIFS returned 16!

  9. #9
    Registered User
    Join Date
    11-05-2018
    Location
    Shepperton, England
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Count If help with Unique Dates

    That is perfect, and so much quicker, thanks John!

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,308

    Re: Count If help with Unique Dates

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

+ 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 of unique dates
    By sandubandu in forum Excel General
    Replies: 5
    Last Post: 03-17-2021, 07:27 AM
  2. [SOLVED] Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates
    By Winship in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-07-2017, 08:37 AM
  3. [SOLVED] Require a formula to count unique dates excluding weekend dates
    By john dalton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-09-2015, 09:17 AM
  4. Replies: 1
    Last Post: 12-18-2012, 03:09 PM
  5. [SOLVED] Count Unique Dates, not knowing dates
    By karen53 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2012, 06:43 PM
  6. Count Unique Dates If formula
    By areynolds in forum Excel General
    Replies: 4
    Last Post: 11-16-2011, 11:22 AM
  7. Count per unique dates and names
    By ElmerS in forum Excel General
    Replies: 4
    Last Post: 07-09-2009, 04:40 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