ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   please i need an answer (https://www.excelbanter.com/excel-worksheet-functions/61796-please-i-need-answer.html)

fadi0007

please i need an answer
 
How can I change a weekend day defult in the networkdays function in the
excel sheet ?

Bob Phillips

please i need an answer
 
Here is an alternative formula

=SUMPRODUCT(--(ISNUMBER(MATCH(WEEKDAY(ROW(INDIRECT(end_date&":"& start_date))
),{2;3;4;5;6},0))))-SUMPRODUCT(ISNUMBER(MATCH(WEEKDAY(holidays),{2;3;4 ;5;6},
0))*(holidays=start_date)*(holidays<=end_date))

where the array constants {2;3;4;5;6} refers to the days of the week that
you want to include, which is Mon-Fri in this example.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"fadi0007" wrote in message
...
How can I change a weekend day defult in the networkdays function in the
excel sheet ?





All times are GMT +1. The time now is 08:24 AM.

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