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. |
|
|
|
Thread Tools | Display Modes |
#11
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|