Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
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. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
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. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
k.. here's the most accurate I can get...
Assuming the start date is in cell A1. This formula will come back as FALSE if the employee is over 15 years. To fix that, put, sa: ,12,14 instead of just ,12 at the end....... =IF((DATE(YEAR(A1),MONTH(A1),DAY(A1)))<(DATE(YEAR( TODAY()-5),MONTH(TODAY()),DAY(TODAY()))),8,IF((DATE(YEAR(A 1),MONTH(A1),DAY(A1)))<(DATE(YEAR(TODAY()-10),MONTH(TODAY()),DAY(TODAY()))),10,IF((DATE(YEAR (A1),MONTH(A1),DAY(A1)))<(DATE(YEAR(TODAY()-15),MONTH(TODAY()),DAY(TODAY()))),12))) "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. |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
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. |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
How do you count your months? For example, how many months do you think are
between these date ranges? 1/1/2008 - 5/1/2008 1/1/2008 - 5/31/2008 1/31/2008 - 5/1/2008 -- Rick (MVP - Excel) "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. |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
"Rick Rothstein" wrote: How do you count your months? For example, how many months do you think are between these date ranges? 1/1/2008 - 5/1/2008 - 4 Months 1/1/2008 - 5/31/2008 - 5 Months 1/31/2008 - 5/1/2008 - 4 Month -- Rick (MVP - Excel) "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. |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
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. |
#9
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
I don't understand why the middle range is 5 months whereas the last range
is 4 months. Given the 5 month answer (using half months for rounding I think), I would have expected the last one to be 3 months... can you explain how you are rounding? -- Rick (MVP - Excel) "WilliamsDeLisle" wrote in message ... "Rick Rothstein" wrote: How do you count your months? For example, how many months do you think are between these date ranges? 1/1/2008 - 5/1/2008 - 4 Months 1/1/2008 - 5/31/2008 - 5 Months 1/31/2008 - 5/1/2008 - 4 Month -- Rick (MVP - Excel) "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. |
#10
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Calculate Months to Determine Length of Service
I made a mistake - sorry - You are correct the first two are 5 months the
last on is 3 months. "Rick Rothstein" wrote: I don't understand why the middle range is 5 months whereas the last range is 4 months. Given the 5 month answer (using half months for rounding I think), I would have expected the last one to be 3 months... can you explain how you are rounding? -- Rick (MVP - Excel) "WilliamsDeLisle" wrote in message ... "Rick Rothstein" wrote: How do you count your months? For example, how many months do you think are between these date ranges? 1/1/2008 - 5/1/2008 - 4 Months 1/1/2008 - 5/31/2008 - 5 Months 1/31/2008 - 5/1/2008 - 4 Month -- Rick (MVP - Excel) "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. |
#11
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculating Average Length of Service | Excel Worksheet Functions | |||
Function to calculate the Length of Service of an Employee | Excel Worksheet Functions | |||
Employee Length of Service | Excel Worksheet Functions | |||
Length of service calculated in calender months. | Excel Discussion (Misc queries) | |||
Length of Service | Excel Worksheet Functions |