ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculates Dates Based on 7 day week excluding Holidays (https://www.excelbanter.com/excel-discussion-misc-queries/126455-calculates-dates-based-7-day-week-excluding-holidays.html)

Daviv

Calculates Dates Based on 7 day week excluding Holidays
 
Is there a function similar to networkdays but includes holidays. I want to
calculate the difference between 2 dates excluding holidays but unlike the
networkdays include the weekends.
--
Thanks!

T. Valko

Calculates Dates Based on 7 day week excluding Holidays
 
Try this:

A1 = start date
B1 = end date
G1:G10 = list of holiday dates

=B1-A1+1-SUMPRODUCT(--(G1:G10=A1),--(G1:G10<=B1))

Biff

"Daviv" wrote in message
...
Is there a function similar to networkdays but includes holidays. I want
to
calculate the difference between 2 dates excluding holidays but unlike the
networkdays include the weekends.
--
Thanks!





All times are GMT +1. The time now is 10:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com