counting workdays

mark gardner

Board Regular
Joined
Sep 6, 2006
Messages
58
If I have a date in a1 and a later date in b1, how can I make c1 reflect the difference in days between them BUT not count weekends? ex: starting date is Friday...ending date is next tuesday for a total of 2 'working days'...is there a formula for this?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try the Networkdays function.
This is part of the analysis toolpack from tools - addins.
But if you're using XL2007 or higher, it's already included.

=NETWORKDAYS(A1,B1)

However, this is inclusive (it counts both start and end dates).

Depending on which day you want excluded, you can do this

To exclude the START date
=NETWORKDAYS(A1+1,B1)

To exclude the END date
=NETWORKDAYS(A1,B1-1)


Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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