ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Change the weekends (https://www.excelbanter.com/excel-worksheet-functions/261413-change-weekends.html)

Sadad

Change the weekends
 
Dears,
I want to calculate the working-days of my subordinates and I usually I use
the function NETWORKDAYS but in this country the weekends are Saturday and
Friday?!
What should I do?
BR

Mike H

Change the weekends
 
Hi,

If you don't use the Holidays argument of Networkdays you can use

=SUMPRODUCT(1*(WEEKDAY(ROW(INDIRECT(A1&":"&B1)))<6 ))

Or to include the Holidays argument use this with holidays in C1:C8

=SUMPRODUCT(1*(WEEKDAY(ROW(INDIRECT(A1&":"&B1)))<6 ),--(ISNA(MATCH(ROW(INDIRECT(A1&":"&B1)),$C$1:$C$8,0)) ))

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Sadad" wrote:

Dears,
I want to calculate the working-days of my subordinates and I usually I use
the function NETWORKDAYS but in this country the weekends are Saturday and
Friday?!
What should I do?
BR



All times are GMT +1. The time now is 08:09 PM.

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