Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to use the Networkdays function to get the working days between two
dates. But in my case I want to make Firday and Saturday as weekend rather than Saturday and Sunday. Is it possible. Thanks! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Suresh
The syntax for NETWORKDAYS() do not provide a customization on the weekdays straightaway. The below formula use WEEKDAY() function to get the number of working days (inclusive of start and end days) excluding Friday and Saturdays A1 = start date B1 = end date =SUMPRODUCT(INT((B1-A1+WEEKDAY(A1-{1,2,3,4,5}))/7)) The days to be counted are mentioned in the array {1,2,3,4,5}. To count Sat and Sun add the day numbers {6,7} If this post helps click Yes --------------- Jacob Skaria "Suresh" wrote: I want to use the Networkdays function to get the working days between two dates. But in my case I want to make Firday and Saturday as weekend rather than Saturday and Sunday. Is it possible. Thanks! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Correction to
<<<To count Sat and Sun add the day numbers {6,7} shoud have been To count Fri and Sat add the day numbers {6,7} If this post helps click Yes --------------- Jacob Skaria "Jacob Skaria" wrote: Hi Suresh The syntax for NETWORKDAYS() do not provide a customization on the weekdays straightaway. The below formula use WEEKDAY() function to get the number of working days (inclusive of start and end days) excluding Friday and Saturdays A1 = start date B1 = end date =SUMPRODUCT(INT((B1-A1+WEEKDAY(A1-{1,2,3,4,5}))/7)) The days to be counted are mentioned in the array {1,2,3,4,5}. To count Sat and Sun add the day numbers {6,7} If this post helps click Yes --------------- Jacob Skaria "Suresh" wrote: I want to use the Networkdays function to get the working days between two dates. But in my case I want to make Firday and Saturday as weekend rather than Saturday and Sunday. Is it possible. Thanks! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Try this =SUMPRODUCT(1*(WEEKDAY(ROW(INDIRECT(C5&":"&C6)))<6 )) C5 holds the beg date and C6 holds the ending date -- Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com "Suresh" wrote in message ... I want to use the Networkdays function to get the working days between two dates. But in my case I want to make Firday and Saturday as weekend rather than Saturday and Sunday. Is it possible. Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Weekends | Excel Worksheet Functions | |||
Removing holidays and weekends , networkdays | Excel Discussion (Misc queries) | |||
Removing holidays and weekends , networkdays | Excel Discussion (Misc queries) | |||
Ignoring weekends & holidays-NETWORKDAYS? | Excel Worksheet Functions | |||
Use networkdays INCLUDE weekends, Exclude holidays | Excel Worksheet Functions |