I have been trying to create an employee data sheet that will show me the number of years an employee has worked for the company by subtracting the employees hire date from todays date. What I have tried so far does not work. not sure what I have done wrong.
todays date comes from feild F1 and looks like this "=TODAY()"
then I have the hire date feild C4 which is formatted to look like this "01/14/2008"
the years worked feild D4 is formated as a number and should look like this "3"
I have tried two formula's for D4 they are as follows:
1st: "=YEAR(F1)-YEAR(C4)" this is what it returns "1900"
2nd: "DATEIF(F1,C4,"y")" this returns "#NAME?"
any help would be greatly appreciated.
I have also noticed on other excel spreadsheets that when I open a document, the dates do not always refresh (ie. "TODAY()") is there a setting that will refresh a function when opening a file?
Bookmarks