Ron, one other question - if you just wanted to automatically increment a
number when the year turns over, as in the case:
Joe B. has over 18 years with Company X
(year rolls over)
Joe B. has over 19 years with Company X
maybe that would be simpler - it doesn't require you to know the person's
exact ddmmyy of hire, just the year.
> If the person's hire date is in cell A1
> this formula returns the number of whole years
[quoted text clipped - 20 lines]
> > anniversary) so the spreadsheet will remain accurate, year after year,
> > without a lot of manual updating?
Ron Coderre - 11 Apr 2008 16:37 GMT
So...if Joe B. is hired on 31-Dec-2007, all you'd use is the year?
What would the 01-Jan-2008 formula indicate:
Joe B. has over 1 year with Company X
or, perhaps just as bad:
Joe B. has over 0 years with Company X
Since it's your formula......it's you who decides
what works and what doesn't.
If you're building text for a sentence, perhaps:
Joe B. has been with Company X since YEAR
or
Joe B. has been with Company X since MONTH-YEAR.
If it was my application, I'd want the hire date.
That way I'd have the flexibility to change the
displayed value to whatever I wanted.
Does that help?
--------------------------
Regards,
Ron
Microsoft MVP (Excel)
(XL2003, Win XP)
> Ron, one other question - if you just wanted to automatically increment a
> number when the year turns over, as in the case:
[quoted text clipped - 32 lines]
>> > anniversary) so the spreadsheet will remain accurate, year after year,
>> > without a lot of manual updating?
JLGWhiz - 11 Apr 2008 17:05 GMT
It would depend on how legally correct the data has to be. If you want it
for general use you could set up all the employees years of service in one
column and make everything in that column increment by 1 on 1 January of each
year. However, if you are tracking seniority, vacation accrual, pay reviews,
etc. you would probably need to track their logevity by hire date. But what
do I know, I'm retired.
> Ron, one other question - if you just wanted to automatically increment a
> number when the year turns over, as in the case:
[quoted text clipped - 30 lines]
> > > anniversary) so the spreadsheet will remain accurate, year after year,
> > > without a lot of manual updating?