Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Can't get NETWORKDAYS to calc elapsed banking days in a month

I want to calculate the number of banking days in a month, and so NETWORKDAYS
and its "holiday" argument is the relevant formula in Excel 2007.
For each date, I can use EOMONTH(date,-1) to get the start of the month date.

Try 1 Jan 2008 without any "Holiday" argument - the result is 2 which seems
to contradict the definition of the formula ".. between 2 dates .." as this
result seems to be including the Start and the End dates themselves.

Next, I tried Mon 5 May 2008 with a Holiday range which has 1 May 2008 in it.
For this, I put the EOMONTH formula in a separate cell, then did a simple
'take one from the other' which gave 5 days - which is logical, being the 1st
to the 5th of May.

But a NETWORKDAYS without a Holiday argument gave 4 - huh?
It should have excluded 2 weekend days.

Then, a NETWORKDAYS with the Holiday argument of 1 May gave 3 - but I would
expect 2, being Friday 2 May and Monday 5 May.

Help! Panic!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Can't get NETWORKDAYS to calc elapsed banking days in a month

Use =EOMONTH(A1,-1)+1

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"flecky" wrote in message
...
I want to calculate the number of banking days in a month, and so
NETWORKDAYS
and its "holiday" argument is the relevant formula in Excel 2007.
For each date, I can use EOMONTH(date,-1) to get the start of the month
date.

Try 1 Jan 2008 without any "Holiday" argument - the result is 2 which
seems
to contradict the definition of the formula ".. between 2 dates .." as
this
result seems to be including the Start and the End dates themselves.

Next, I tried Mon 5 May 2008 with a Holiday range which has 1 May 2008 in
it.
For this, I put the EOMONTH formula in a separate cell, then did a simple
'take one from the other' which gave 5 days - which is logical, being the
1st
to the 5th of May.

But a NETWORKDAYS without a Holiday argument gave 4 - huh?
It should have excluded 2 weekend days.

Then, a NETWORKDAYS with the Holiday argument of 1 May gave 3 - but I
would
expect 2, being Friday 2 May and Monday 5 May.

Help! Panic!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Can't get NETWORKDAYS to calc elapsed banking days in a month

flecky,

Don't Panic!

You just need to use EOMONTH(Date,-1) +1 to get the first of the month, since EOMONTH returns, not
surprisingly, the LAST day of the month, not the first day. Format the cell for a date, and you will
see that the date is actually April 30, not May 1.

HTH,
Bernie
MS Excel MVP


"flecky" wrote in message
...
I want to calculate the number of banking days in a month, and so NETWORKDAYS
and its "holiday" argument is the relevant formula in Excel 2007.
For each date, I can use EOMONTH(date,-1) to get the start of the month date.

Try 1 Jan 2008 without any "Holiday" argument - the result is 2 which seems
to contradict the definition of the formula ".. between 2 dates .." as this
result seems to be including the Start and the End dates themselves.

Next, I tried Mon 5 May 2008 with a Holiday range which has 1 May 2008 in it.
For this, I put the EOMONTH formula in a separate cell, then did a simple
'take one from the other' which gave 5 days - which is logical, being the 1st
to the 5th of May.

But a NETWORKDAYS without a Holiday argument gave 4 - huh?
It should have excluded 2 weekend days.

Then, a NETWORKDAYS with the Holiday argument of 1 May gave 3 - but I would
expect 2, being Friday 2 May and Monday 5 May.

Help! Panic!



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
Solve 1st of month after specified number of days elapsed MH Excel Worksheet Functions 8 March 7th 07 05:39 AM
Getting XL to Calc Working Days Lost without using NETWORKDAYS() Function richarjb Excel Discussion (Misc queries) 7 May 22nd 06 08:35 PM
Elapsed time Calc...over 30 days long... [email protected] Excel Discussion (Misc queries) 1 December 6th 04 06:16 PM
Elapsed time Calc...over 30 days long... [email protected] Excel Discussion (Misc queries) 1 December 6th 04 05:39 PM
Elapsed time Calc...over 30 days long... [email protected] Excel Discussion (Misc queries) 0 December 6th 04 05:27 PM


All times are GMT +1. The time now is 11:50 PM.

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"