#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default Calculating dates

I am trying to track perfect attendance which is defined as a full year with
no absences. I need to be able to distinguish between employees who acheive
this for 1 year, 2 years, 3 years and so on.

The data that we use is currently set up like this:

A2: Employee Name
B2: 2nd to last most recent date absent
C2: Most recent date absent

I need to run a formula that will tell me not only if there is a year or
more between the dates in B & C, but also if there is currently or was a year
or more difference in the date in A4 and any date in the current month.

So tomorrow (4.1.08), I would run a report that gives me all absences for
March 2008 and plug those into column C (and delete & move down the last most
recent date to column B). If any employee WAS absent in March but they still
had a year between that and thier previous most recent absence, I need to
know to give them an award, but also if they DID NOT have any absences in
March, but thier most recent date in A4 was in March of a previous year,
earning them the award for either 1, 2, 3, ect years.

Any ideas on what the appropriate formula will be? Thanks in advance for
the help. You all are awesome.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calculating dates

You will probably want to make use of the DATEDIF function (don't look, it
is not in your help files unless you are using XL2000). See this link...

http://www.cpearson.com/excel/datedif.aspx

Rick


"hmsawyer" wrote in message
...
I am trying to track perfect attendance which is defined as a full year
with
no absences. I need to be able to distinguish between employees who
acheive
this for 1 year, 2 years, 3 years and so on.

The data that we use is currently set up like this:

A2: Employee Name
B2: 2nd to last most recent date absent
C2: Most recent date absent

I need to run a formula that will tell me not only if there is a year or
more between the dates in B & C, but also if there is currently or was a
year
or more difference in the date in A4 and any date in the current month.

So tomorrow (4.1.08), I would run a report that gives me all absences for
March 2008 and plug those into column C (and delete & move down the last
most
recent date to column B). If any employee WAS absent in March but they
still
had a year between that and thier previous most recent absence, I need to
know to give them an award, but also if they DID NOT have any absences in
March, but thier most recent date in A4 was in March of a previous year,
earning them the award for either 1, 2, 3, ect years.

Any ideas on what the appropriate formula will be? Thanks in advance for
the help. You all are awesome.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default Calculating dates

Rick,

That's very interesting. Are there any more undocumented functions?

Bill Ridgeway
Computer Solutions

"Rick Rothstein (MVP - VB)" wrote in
message ...
You will probably want to make use of the DATEDIF function (don't look, it
is not in your help files unless you are using XL2000). See this link...

http://www.cpearson.com/excel/datedif.aspx

Rick


"hmsawyer" wrote in message
...
I am trying to track perfect attendance which is defined as a full year
with
no absences. I need to be able to distinguish between employees who
acheive
this for 1 year, 2 years, 3 years and so on.

The data that we use is currently set up like this:

A2: Employee Name
B2: 2nd to last most recent date absent
C2: Most recent date absent

I need to run a formula that will tell me not only if there is a year or
more between the dates in B & C, but also if there is currently or was a
year
or more difference in the date in A4 and any date in the current month.

So tomorrow (4.1.08), I would run a report that gives me all absences for
March 2008 and plug those into column C (and delete & move down the last
most
recent date to column B). If any employee WAS absent in March but they
still
had a year between that and thier previous most recent absence, I need to
know to give them an award, but also if they DID NOT have any absences in
March, but thier most recent date in A4 was in March of a previous year,
earning them the award for either 1, 2, 3, ect years.

Any ideas on what the appropriate formula will be? Thanks in advance for
the help. You all are awesome.




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
calculating between 2 given dates spudsnruf Excel Discussion (Misc queries) 7 March 28th 08 05:08 PM
Calculating with dates Henk Excel Discussion (Misc queries) 3 June 13th 07 04:24 PM
Calculating With Dates Clark Excel Discussion (Misc queries) 2 May 13th 07 08:10 AM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
calculating with dates DzEK Excel Discussion (Misc queries) 6 July 2nd 05 12:24 AM


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