#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
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   Report Post  
Posted to microsoft.public.excel.misc
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
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?


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
Counting workdays between dates Alexball Excel Discussion (Misc queries) 2 August 3rd 06 05:15 PM
How do you calculate number of workdays from dates entered? [email protected] Excel Worksheet Functions 0 March 25th 05 07:55 PM
Fill dates with weekdays/workdays only DJ Bjorklund Excel Worksheet Functions 1 January 18th 05 04:48 PM
Calculate the number of workdays between 2 dates Tegid77 Excel Worksheet Functions 2 November 4th 04 11:09 PM
Calculate the number of workdays between 2 dates Tegid77 Excel Worksheet Functions 1 November 4th 04 07:27 PM


All times are GMT +1. The time now is 03:40 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"