View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sean Timmons Sean Timmons is offline
external usenet poster
 
Posts: 1,696
Default Calculate Months to Determine Length of Service

Careful though... If the day of month of today is less than day of month of
hire date, it's really 5 months and, say, 20 days, not 6 months. Depends on
the level of accuracy the OP needs, of course...

"Alan" wrote:

or

=(YEAR(NOW())-YEAR(A1))*12-MONTH(A1)+MONTH(NOW())

"Gary''s Student" wrote in message
...
if A1 contains:
6/13/1985
and B1 contains:
4/9/2009

Then:
=(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)
displays 286 as the number of months
--
Gary''s Student - gsnu200845


"WilliamsDeLisle" wrote:

I need to be able to input a beginning employment date, i.e., 10/12/1994
and
calculate the number of months between this date and the current date to
determine the amount of vacation earned per month to be used in an IF
formula.

EXAMPLE: Start Date 06/13/85 current date 04/9/09 = How Many Months
IF Statement would be If 0-60 months 8 Hours accrued each month, if
61-120
months 10 hours accrued each month, If 121-180 months 12 hours accrued
each
month.