NETWORKDAYS WORK AROUND

rcteel81

New Member
Joined
May 31, 2007
Messages
2
Currently trying to find a work around for NETWORKDAYS. I'm aware of the Analysis ToolPak Add-In, but would like a work around so users of my job aid will not need to add it.

I found a formula that can calculate the number of specified days in a time period, so I'm using it to determine Saturdays and Sundays and then subtracting it from the total days in the time frame. However, it seems to not be 100% accurate when testing it. Here is the formula:

=SUM(IF(WEEKDAY(A2 + 1 + ROW(INDIRECT("1:"&TRUNC(B2-A2) +1)))=C2,1,0))

where A2 = Start Date
B2 = End Date
C2 = Day of week number ( 1-Sunday, 2-Monday, ...7-Saturday)

Does anyone know why this wouldn't be working or a better way to go about finding the business days for a time period without using networkdays? Thanks.


Ryan
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
This formula will also give the same result as

=NETWORKDAYS(A2,B2)

=SUM(INT((WEEKDAY(A2-{2,3,4,5,6})+B2-A2)/7))
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,272
Members
449,149
Latest member
mwdbActuary

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