NETWORKDAYS and Different workdays

albasheer

Board Regular
Joined
Dec 14, 2009
Messages
159
Hello,

I am using the NETWORKDAYS function. Is there a simple way to have working days changed from Monday-Friday to Sunday-Thursday?

I know it can be done using sumproduct and an array, but I thought maybe there would be an easier way.

Thanks.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
If you don't have to worry about holidays

SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A3&":"&A9)))={1,2,3,4,5,7}))
 
Upvote 0
You can also count all Fridays between A2 and B2 with this formula

=INT((WEEKDAY(A2-6)+B2-A2)/7)

so to count all non-Fridays in the range....

=B2-A2+1-INT((WEEKDAY(A2-6)+B2-A2)/7)

or like this.....

=SUM(INT((WEEKDAY(A2-{1,2,3,4,5,7})+B2-A2)/7))
 
Last edited:
Upvote 0
Great! This way I can build the sheet to allow for many possibilities by adjusting the formula to calculate all Fridays and/or all Saturdays, and then a count of holidays in a year to build different scenarios. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,786
Messages
6,126,893
Members
449,347
Latest member
Macro_learner

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top