Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pbs
 
Posts: n/a
Default How do I get networkdays for a month

If I have a date range of 4/15 - 7/30, how do I pull out the workdays per
month?

April - #
May - #
June - #
July - #

Thanks,
-pete
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

April

=NETWORKDAYS(DATE(2005,4,15),DATE(2005,4,30),Holid ays)

adapt to fit for the rest



--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"pbs" wrote in message
...
If I have a date range of 4/15 - 7/30, how do I pull out the workdays per
month?

April - #
May - #
June - #
July - #

Thanks,
-pete




  #3   Report Post  
pbs
 
Posts: n/a
Default

Thanks Peo. I think I need to be more clear in what I'm asking.

What I want to come out with is something like this:

April | May | June | July
4/15/2005 | 7/15/2005 12 20 22 10
6/15/2005 | 7/31/2005

I've tried this:
MAX(0,NETWORKDAYS(MAX(T$1,$E4),MIN(DATE(YEAR(T$1), MONTH(T$1)+1,0),$F4)))
But it is coming up 2 days short...

Any help would be appreciated.

"Peo Sjoblom" wrote:

April

=NETWORKDAYS(DATE(2005,4,15),DATE(2005,4,30),Holid ays)

adapt to fit for the rest



--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"pbs" wrote in message
...
If I have a date range of 4/15 - 7/30, how do I pull out the workdays per
month?

April - #
May - #
June - #
July - #

Thanks,
-pete





  #4   Report Post  
Daniel.M
 
Posts: n/a
Default

Hi,

With
A2: start date
B2: end date
holidays: your range of holidays (omit from formula if you have none)

C1: 1st Jan
D1: 1st Feb
drag until O1 (1st Jan next Year)

In C2: =MAX(0,NETWORKDAYS(MAX(C$1,$A2),MIN(D$1-1,$B2),holidays))

Copy C2 till N2

Obviously, your year can start in April (1st Apr in C1, 1st May in D1, etc.) and
the logic stays the same.

Daniel M.


"pbs" wrote in message
...
Thanks Peo. I think I need to be more clear in what I'm asking.

What I want to come out with is something like this:

April | May | June | July
4/15/2005 | 7/15/2005 12 20 22 10
6/15/2005 | 7/31/2005

I've tried this:
MAX(0,NETWORKDAYS(MAX(T$1,$E4),MIN(DATE(YEAR(T$1), MONTH(T$1)+1,0),$F4)))
But it is coming up 2 days short...

Any help would be appreciated.

"Peo Sjoblom" wrote:

April

=NETWORKDAYS(DATE(2005,4,15),DATE(2005,4,30),Holid ays)

adapt to fit for the rest



--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"pbs" wrote in message
...
If I have a date range of 4/15 - 7/30, how do I pull out the workdays per
month?

April - #
May - #
June - #
July - #

Thanks,
-pete







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
Add one month to the previuos month heater Excel Discussion (Misc queries) 5 February 10th 05 12:33 AM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
Accounting Month vs. Calendar Month JN Excel Worksheet Functions 4 January 31st 05 08:09 PM
UserForm to select current month or earlier Steve Excel Discussion (Misc queries) 2 January 21st 05 09:41 PM
How to extract month number from month name PM Excel Discussion (Misc queries) 2 January 19th 05 03:07 PM


All times are GMT +1. The time now is 06:31 PM.

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

About Us

"It's about Microsoft Excel"