+ Reply to Thread
Results 1 to 8 of 8

Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    36

    Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    Greetings!

    Looking for a formula that will count the number of unique dates within a designated range that will also exclude designated holidays from the unique count.

    The attached might better paint the picture. (Hopefully)

    Thanks!!

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    Hi,

    an attempt

    =SUMPRODUCT(((COUNTIF(B11:B13,A11:A25)=0)*(WEEKDAY(A11:A25,11)<6))/COUNTIF(A11:A25,A11:A25))

    I think B12:B13 should house two different dates: maybe a typo.

    Hope it could work.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    11-24-2012
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    Perfect!

    Your note about the typo was correct. It should have been 01/01/2016. Changing it from 01/01/2017 to 01/01/2016 produced the correct answer, 2.

    Thanks. Awesomer!! (And One Day I Will Figure Out Why This Works So Nicely )

    Will mark as "solved."

  4. #4
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    Hi,

    thanks for sharing very kind feedback.

    Greetings from Italy

  5. #5
    Registered User
    Join Date
    11-24-2012
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    I was a little quick in designating as "solved."

    Turns out that the source file has blank entries. I changed one of the date entries to blank in the attachment. Results in DIV/0.

    Can this be fixed to recognize ignore blanks, or something magical?

  6. #6
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    Hi

    a small fix


    =SUMPRODUCT(((COUNTIF(B11:B13,A11:A100)=0)*(WEEKDAY(A11:A100,11)<6))/COUNTIF(A11:A100,A11:A100&""))

    Please check if you'get unespected results.

    Regards

  7. #7
    Registered User
    Join Date
    11-24-2012
    Location
    Annapolis, Maryland
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    It works nicely. (Have more thoroughly vetted, this time.

    Grazie Mille!

  8. #8
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Count Unique Number of Dates, Excluding Designated Holidays and Weekend Dates

    Ciao,

    thanks again!

    Saluti dall'Italia

+ 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] 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
  2. Add X Days To Dates, Excluding Weekends and Holidays
    By sianjialin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2014, 11:46 PM
  3. Auto name tabs with dates excluding weekends and holidays
    By Eeyora in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2013, 02:50 PM
  4. [SOLVED] VBA code for excluding weekend dates from Web import into Excel
    By vk2013 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-29-2013, 04:15 PM
  5. VBA - List Dates excluding Weekends and Holidays
    By tykhoo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2012, 11:13 PM
  6. [SOLVED] Excluding holidays from dates column
    By Alexander_Golinsky in forum Excel General
    Replies: 8
    Last Post: 06-02-2012, 02:23 PM
  7. fill a series of dates excluding holidays
    By gsh20 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-06-2005, 09: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