Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Counting no of days from a list of running dates for a 12 month pe

Hi I am trying to set up a sick leave list which will work out the cumulative
total for the last 12 months (from last day of last sick entry).

The problem I have as the ist is added to I need a function/formula to work
out 12 months from last date and then add up the no. of sick days from then
to last date.

Below is the chart

Column 1 Start date of sickness
column 2 End date
Column 3 the number of days sick in period (column 2 less column 1 in days)
column 4 the number of days sick in period above excluding week ends (column
2 less column 1 less weekends in days)
column 5 total sick days in last 12 months from date in column 2 going back
a year including weekends
column 6 total sick days in last 12 months from date in column 2 going back
a year excluding weekends

What function or formulas can I use to calculate column 3,4,5 & 6.

Im a not very experienecd in Excel so any help appreciated and make it easy
as I struggle sometimes. Thanks Bill
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Counting no of days from a list of running dates for a 12 month pe


"bill999" wrote in message
...
Hi I am trying to set up a sick leave list which will work out the
cumulative
total for the last 12 months (from last day of last sick entry).

The problem I have as the ist is added to I need a function/formula to
work
out 12 months from last date and then add up the no. of sick days from
then
to last date.

Below is the chart

Column 1 Start date of sickness
column 2 End date
Column 3 the number of days sick in period (column 2 less column 1 in
days)
column 4 the number of days sick in period above excluding week ends
(column
2 less column 1 less weekends in days)
column 5 total sick days in last 12 months from date in column 2 going
back
a year including weekends
column 6 total sick days in last 12 months from date in column 2 going
back
a year excluding weekends

What function or formulas can I use to calculate column 3,4,5 & 6.


3 - =B2-A2 and fornat as general

4 - =NETWORKDAYS(A2,B2)

5 -
=IF(B4=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())),B4-MAX(A4,DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()))-1),0)

6 - =IF(B4=DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())),
NETWORKDAYS(MAX(A4,DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()))),B4),0)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Counting no of days from a list of running dates for a 12 month pe

Hi,

The formula below looks at the dates in column B and adds up the instances
of sickness in column E that occur within the last rolling 12 months. I think
you will find it fairly easy to understand and modify for other columns.

=SUMIF(B1:B1000,"<="&DATE(YEAR(TODAY()), MONTH(TODAY()) - 12, 1),E1:E1000)

Mike

Mike

"bill999" wrote:

Hi I am trying to set up a sick leave list which will work out the cumulative
total for the last 12 months (from last day of last sick entry).

The problem I have as the ist is added to I need a function/formula to work
out 12 months from last date and then add up the no. of sick days from then
to last date.

Below is the chart

Column 1 Start date of sickness
column 2 End date
Column 3 the number of days sick in period (column 2 less column 1 in days)
column 4 the number of days sick in period above excluding week ends (column
2 less column 1 less weekends in days)
column 5 total sick days in last 12 months from date in column 2 going back
a year including weekends
column 6 total sick days in last 12 months from date in column 2 going back
a year excluding weekends

What function or formulas can I use to calculate column 3,4,5 & 6.

Im a not very experienecd in Excel so any help appreciated and make it easy
as I struggle sometimes. Thanks Bill

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 Blanks in a list of dates by month phocused Excel Worksheet Functions 3 January 2nd 07 02:12 PM
Counting days in month jamesjohn Excel Discussion (Misc queries) 6 May 27th 06 01:00 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
Calculate running target by days in the month Robert Excel Worksheet Functions 2 July 4th 05 06:14 AM


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