math with year
That suggests that C4 is not a date, but a text cell. With a true date
=YEAR(TODAY()-D4) works fine.
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"Clayman" wrote in message
...
I need to calculate years of service. I have the hire date in date format
(ex: 10/04/1998 - in cell C4). I have extracted the hire year in D4 using
=YEAR(C4). So far, so good.
C4=hire date
D4=YEAR(C4)
When I try this formula for years of service: =YEAR(TODAY())-YEAR(C4), I
get
00.
When I try this formula: =YEAR(TODAY()-D4), I get 05.
Nevermind - I figured out the answer while posting the question. But in
case
others have the same question, here's the formula I used:
=VALUE(YEAR(TODAY()))-VALUE(D4)
It works. :)
Thanks for all your help!
--
Adios,
Clay Harryman
|