Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default (YEARS) Excel Formula

I am trying to use the YEAR function in excel. I need to figure out (years of
service) between the original Hire date and the current date. EX

11/01/1961 - original hire date
2/08/2008 - current date

Need a formula that will get me to the answer of (47 years)

I copied the formula below into excel

=YEAR(A3)-YEAR(A2) and I entered 2008 (in cell A2 and the original hire date
is in cell N5), when I hit enter to submit the formula I got "#####". What
did I do wrong???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default (YEARS) Excel Formula

Maybe

=DATEDIF(A1,A2,"y")

Where A1 is the earlier date.

Mike

"Kellie" wrote:

I am trying to use the YEAR function in excel. I need to figure out (years of
service) between the original Hire date and the current date. EX

11/01/1961 - original hire date
2/08/2008 - current date

Need a formula that will get me to the answer of (47 years)

I copied the formula below into excel

=YEAR(A3)-YEAR(A2) and I entered 2008 (in cell A2 and the original hire date
is in cell N5), when I hit enter to submit the formula I got "#####". What
did I do wrong???

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default (YEARS) Excel Formula

=DATEDIF(A2,A3,"y") shows 46 as we haven't got to Nov yet.
--
Gary''s Student - gsnu200768


"Kellie" wrote:

I am trying to use the YEAR function in excel. I need to figure out (years of
service) between the original Hire date and the current date. EX

11/01/1961 - original hire date
2/08/2008 - current date

Need a formula that will get me to the answer of (47 years)

I copied the formula below into excel

=YEAR(A3)-YEAR(A2) and I entered 2008 (in cell A2 and the original hire date
is in cell N5), when I hit enter to submit the formula I got "#####". What
did I do wrong???

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Years Day formula? Richard Excel Discussion (Misc queries) 3 September 5th 06 12:59 PM
How do I subtract dates to get a number in years or years & month jude Excel Discussion (Misc queries) 2 August 25th 06 08:02 PM
Overlay 4 years of data as a line on 4 years of columns for several x category labels eMTee Charts and Charting in Excel 1 December 5th 05 12:32 PM
Change Xcel Amortization from 30 years to 40 years? onroad80 Excel Discussion (Misc queries) 1 November 28th 05 11:36 PM
Excel Formula - Compute Number of Years Worked Penny Excel Discussion (Misc queries) 2 August 11th 05 07:39 PM


All times are GMT +1. The time now is 06:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"