Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Calculating # of busn days, not just calendar days, between 2 dates?

Phew, I keep coming across things I don't know how to resolve. A
spreadsheet I set up for holiday leave last week works great but I just
realized that we need to know not just the number of days between a start
and end date, but also the # of business days. The code for calendar days
was easy, since it's just a subtraction formula, basically. i.e., between
7/28/2004 and 8/13/2004, there are 16 calendar days. By counting manually
on paper calendars, I see that there are 12 business days between those 2
dates, if I've counted correctly.

How would one code that in a formula, though, pls?

Thank you! Where would I be without this fabulous ng and all you great MVPs
and other out there! :oD


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Calculating # of busn days, not just calendar days, between 2 dates?

=NETWORKDAYS(E1,E2)

If you want to exclude hoilidays, put in another rantge and use

=NETWORKDAYS(E1,E2, range_of_dates)

This is part of the Analysis Toolpak Addin, so make sure that is enabled.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"StargateFanFromWork" wrote in message
...
Phew, I keep coming across things I don't know how to resolve. A
spreadsheet I set up for holiday leave last week works great but I just
realized that we need to know not just the number of days between a start
and end date, but also the # of business days. The code for calendar days
was easy, since it's just a subtraction formula, basically. i.e., between
7/28/2004 and 8/13/2004, there are 16 calendar days. By counting manually
on paper calendars, I see that there are 12 business days between those 2
dates, if I've counted correctly.

How would one code that in a formula, though, pls?

Thank you! Where would I be without this fabulous ng and all you great

MVPs
and other out there! :oD




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating the days between two dates pandd15 Excel Worksheet Functions 2 September 15th 09 03:18 PM
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
Calculating days between two dates lledelen Excel Discussion (Misc queries) 4 March 9th 07 08:48 PM
Calculating Days Between Dates martins New Users to Excel 5 March 26th 06 11:46 PM
Number of days between dates (Calendar) Malcolm Excel Programming 1 September 9th 03 12:43 PM


All times are GMT +1. The time now is 10:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"