A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculate Months to Determine Length of Service



 
 
Thread Tools Display Modes
  #11  
Old April 10th, 2009, 07:00 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Calculate Months to Determine Length of Service

=datedif(a1,today(),"m") will give you the number of completed months.
--
David Biddulph

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.



  #12  
Old April 13th, 2009, 09:51 PM posted to microsoft.public.excel.worksheet.functions
WilliamsDeLisle
external usenet poster
 
Posts: 10
Default Calculate Months to Determine Length of Service

This information is great for calculating the length of service now I need
help with the second part of my question which is:

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, if more than 181 months then 14 hours accrued each
month. When I try to put in an argument I get an error message.

**This accrual amount for each month must be used in the monthly column if
the worksheet for that month has 100% for the hours worked in cell C02 of
each month.

i.e.,:

Column A Column B
(Month) (Earned)**
JULY-08 ________ (see the description above)
AUG-08
SEPT-08
OCT-08
NOV-08


"T. Valko" wrote:

Try this:

A1 = start date

=DATEDIF(A1,NOW(),"m")

--
Biff
Microsoft Excel MVP


"WilliamsDeLisle" wrote in
message ...
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.





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.