A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Dates Workdays



 
 
Thread Tools Display Modes
  #1  
Old May 31st, 2009, 07:17 PM posted to microsoft.public.excel.misc
Marcus
external usenet poster
 
Posts: 148
Default Dates Workdays

Hi,
I have a long list of tasks each with a different start date and end date
spanning several months. I have used networkdays function to calclaute the
total number of work days for the task. I now want a formula to try and
calculate the number of networkdays in each month for each task.

The task start and end dates do not coincide with the start and end of the
months and the months are not calender months.

I assume I need calculate the networkdays based on a nested if statements to
check if the task start end dates are or the month start and end dates
and then calculate . Or is there a simpler way to do this?


  #2  
Old May 31st, 2009, 09:25 PM posted to microsoft.public.excel.misc
bapeltzer
external usenet poster
 
Posts: 43
Default Dates Workdays

The approach I'd take:
For each month, find that month's start and end dates. Then the task's
start date for that month is MAX(task start date, month start date). The
task's end date for the month is MIN(task end date, month end date). The
task's networkdays for the month are =max(0,networkdays(task's start date for
the month, task's end date for the month)). The max(0, ... ) ensures that we
don't count negative workdays for tasks that are completed before or started
after that month.

"Marcus" wrote:

Hi,
I have a long list of tasks each with a different start date and end date
spanning several months. I have used networkdays function to calclaute the
total number of work days for the task. I now want a formula to try and
calculate the number of networkdays in each month for each task.

The task start and end dates do not coincide with the start and end of the
months and the months are not calender months.

I assume I need calculate the networkdays based on a nested if statements to
check if the task start end dates are or the month start and end dates
and then calculate . Or is there a simpler way to do this?


  #3  
Old May 31st, 2009, 10:07 PM posted to microsoft.public.excel.misc
Marcus
external usenet poster
 
Posts: 148
Default Dates Workdays

Thanks. That worked a treat.

"bapeltzer" wrote:

The approach I'd take:
For each month, find that month's start and end dates. Then the task's
start date for that month is MAX(task start date, month start date). The
task's end date for the month is MIN(task end date, month end date). The
task's networkdays for the month are =max(0,networkdays(task's start date for
the month, task's end date for the month)). The max(0, ... ) ensures that we
don't count negative workdays for tasks that are completed before or started
after that month.

"Marcus" wrote:

Hi,
I have a long list of tasks each with a different start date and end date
spanning several months. I have used networkdays function to calclaute the
total number of work days for the task. I now want a formula to try and
calculate the number of networkdays in each month for each task.

The task start and end dates do not coincide with the start and end of the
months and the months are not calender months.

I assume I need calculate the networkdays based on a nested if statements to
check if the task start end dates are or the month start and end dates
and then calculate . Or is there a simpler way to do this?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:29 AM.


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