Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Years and Weeks
I would like to type an employee's start date and today's date and then have in another cell tell me how many years and weeks that employee worked. Can I do this?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Years and Weeks
Michael, have a look here
http://www.cpearson.com/excel/datedif.htm -- Paul B Always backup your data before trying something new Please post any response to the newsgroups so others can benefit from it Feedback on answers is always appreciated! Using Excel 97 & 2000 ** remove news from my email address to reply by email ** "Michael" wrote in message ... I would like to type an employee's start date and today's date and then have in another cell tell me how many years and weeks that employee worked. Can I do this? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Years and Weeks
= Int((DateLast - DateFirst) / 365.25) & ":" & Int(((DateLast - DateFirst) /
365.25 - Int((DateLast - DateFirst) / 365.25)) * 12) "Michael" wrote in message ... I would like to type an employee's start date and today's date and then have in another cell tell me how many years and weeks that employee worked. Can I do this? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Years and Weeks
On Wed, 10 Dec 2003 06:46:23 -0800, "Michael"
wrote: I would like to type an employee's start date and today's date and then have in another cell tell me how many years and weeks that employee worked. Can I do this? =DATEDIF(B20,TODAY(),"y")&" yrs and "& INT(DATEDIF(B20,TODAY(),"yd")/7)&" weeks" Will give the number of whole years and full weeks since the employment date (with the employment date in B20). If you want to round the weeks to the closest, change the INT function to ROUND(DATEDIF.....,0) --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
minutes seconds days weeks years | Excel Discussion (Misc queries) | |||
How do I subtract dates to get a number in years or years & month | Excel Discussion (Misc queries) | |||
Overlay 4 years of data as a line on 4 years of columns for several x category labels | Charts and Charting in Excel | |||
Change Xcel Amortization from 30 years to 40 years? | Excel Discussion (Misc queries) | |||
calculate weeks from a start date ( not yr weeks) | Excel Worksheet Functions |