Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Calculate Number of Days worked in Each Month by Project

I want to calculate the number of days worked on a project in a rolling 4
month calendar. Working Days are Mon-Thu. My sheet looks like this:

Jobname TotalDays StartDate EndDate DaysMo1 DaysMo2 DaysMo3 DaysMo4
Foo 3 3-22-10 3-25-10 3 0
0 0
Goo 25 4-2-10 5-17-10 0 17 8
0

I have used Workday to calculate my enddate but I'm having difficulty
calculating the proper month bins to put the days in. Since the calendar
rolls forward ewach month I need to consider that a job started before Mo1 or
in Mo1 or in Mo2 or in Mo4 or it'sw beyond the planning horizon. Anyone
solved this before?

Thanks for any guidence
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Calculate Number of Days worked in Each Month by Project

Hi

I have been having issues with a training plan and was given a formula to
calc the days the course used in each month but this included weekends, and
noone has been able to help to only show workdays so not sure how you will
only do 4 days each week.

In brief my sheet you put in a start date (m7) and an end date(n7), Q5 in a
mm-yy field to match a month. Note Q5 was Jan-10 and the columns went to AB5
(dec-10) so with the formula copied across all columns if a course covered 1
or more months then this would say how many days in each month.

=SUMPRODUCT(--ISNUMBER(MATCH(ROW(INDIRECT($M7&":"&$N7)),ROW(INDI RECT(DATE(YEAR(Q$5),MONTH(Q$5),0)+1&":"&Q$5)),0)))


Not sure if this will help in any way but if you do crack it please let me
know, email me if you could. .

Cheers and good luck

UKMAN

"froggygremblin" wrote:

I want to calculate the number of days worked on a project in a rolling 4
month calendar. Working Days are Mon-Thu. My sheet looks like this:

Jobname TotalDays StartDate EndDate DaysMo1 DaysMo2 DaysMo3 DaysMo4
Foo 3 3-22-10 3-25-10 3 0
0 0
Goo 25 4-2-10 5-17-10 0 17 8
0

I have used Workday to calculate my enddate but I'm having difficulty
calculating the proper month bins to put the days in. Since the calendar
rolls forward ewach month I need to consider that a job started before Mo1 or
in Mo1 or in Mo2 or in Mo4 or it'sw beyond the planning horizon. Anyone
solved this before?

Thanks for any guidence

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Calculate Number of Days worked in Each Month by Project

Thanks for the lead. I tinkered with it a good bit. I see your issue. It
calculates the total number of days in the month that a course COULD occur
rather than the number of workdays it DOES occur. It took me awhile to
figure out how even that works - It uses the start(m7) and end(n7) dates to
calculate an array of "rows" where the first row is the serial number of the
start date and the last row is the serial number of the end date. Then it
creates a second array of "rows" from the serial for the 1st of the month in
row 5 in the current column to the serial number for whatever date you
entered in Q5:AB5 (Seems like that needs to be the last day of the month in
each column). Then it counts the matches in the first array that also occur
in the second array and that gives you a count of days in taht month that are
included in you start/Stop range. Pretty neat but not what I'm trying to do

Thanks for taking time to help out

"UKMAN" wrote:

Hi

I have been having issues with a training plan and was given a formula to
calc the days the course used in each month but this included weekends, and
noone has been able to help to only show workdays so not sure how you will
only do 4 days each week.

In brief my sheet you put in a start date (m7) and an end date(n7), Q5 in a
mm-yy field to match a month. Note Q5 was Jan-10 and the columns went to AB5
(dec-10) so with the formula copied across all columns if a course covered 1
or more months then this would say how many days in each month.

=SUMPRODUCT(--ISNUMBER(MATCH(ROW(INDIRECT($M7&":"&$N7)),ROW(INDI RECT(DATE(YEAR(Q$5),MONTH(Q$5),0)+1&":"&Q$5)),0)))


Not sure if this will help in any way but if you do crack it please let me
know, email me if you could. .

Cheers and good luck

UKMAN

"froggygremblin" wrote:

I want to calculate the number of days worked on a project in a rolling 4
month calendar. Working Days are Mon-Thu. My sheet looks like this:

Jobname TotalDays StartDate EndDate DaysMo1 DaysMo2 DaysMo3 DaysMo4
Foo 3 3-22-10 3-25-10 3 0
0 0
Goo 25 4-2-10 5-17-10 0 17 8
0

I have used Workday to calculate my enddate but I'm having difficulty
calculating the proper month bins to put the days in. Since the calendar
rolls forward ewach month I need to consider that a job started before Mo1 or
in Mo1 or in Mo2 or in Mo4 or it'sw beyond the planning horizon. Anyone
solved this before?

Thanks for any guidence

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
How to calculate worked weekend days taco Excel Worksheet Functions 3 May 1st 09 04:54 PM
Calculate number days + hours to complete a project pfm Excel Worksheet Functions 1 January 23rd 08 02:29 AM
Calculate Number of Days in a Month Gary T Excel Worksheet Functions 3 November 21st 07 04:21 PM
Counting the days worked in a month by employee Curtis Excel Worksheet Functions 0 November 8th 05 05:15 PM
Counting te days worked in a month Curtis Excel Worksheet Functions 0 November 7th 05 05:01 PM


All times are GMT +1. The time now is 09:25 AM.

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"