#1   Report Post  
Posted to microsoft.public.excel.misc
Savage
 
Posts: n/a
Default Date to years

Is there anyway of converting a date to the amount of years. I have
employees years started posted and I want to convert to years worked with the
company.

Thanks

Kevin
  #2   Report Post  
Posted to microsoft.public.excel.misc
Chip Pearson
 
Posts: n/a
Default Date to years

Use the DATEDIF command.

=DATEDIF(start_date, TODAY(),"y")

See www.cpearson.com/excel/datedif.htm for more info about
DATEDIF.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Savage" wrote in message
...
Is there anyway of converting a date to the amount of years. I
have
employees years started posted and I want to convert to years
worked with the
company.

Thanks

Kevin



  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Date to years

Hi

If the date is a recognised Excel date, you can simply deduct the date from
today's date and format the result as yy.

Hope this helps.
Andy.

"Savage" wrote in message
...
Is there anyway of converting a date to the amount of years. I have
employees years started posted and I want to convert to years worked with
the
company.

Thanks

Kevin



  #4   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default Date to years


Hi, try this:

=DATEDIF(A1,TODAY(),"y") # years

you can also use:

"m" - months
"d" - days
"ym" - year months
"yd" - year days

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=494468

  #5   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Date to years

If you only have the starting years and want a rough estimate (calendar
years) you can use

=YEAR(TODAY())-A1

where A1 holds the start year

--
Regards,

Peo Sjoblom

(No private emails please)


"Savage" wrote in message
...
Is there anyway of converting a date to the amount of years. I have
employees years started posted and I want to convert to years worked with
the
company.

Thanks

Kevin




  #6   Report Post  
Posted to microsoft.public.excel.misc
Savage
 
Posts: n/a
Default Date to years

thanks, works great

"pinmaster" wrote:


Hi, try this:

=DATEDIF(A1,TODAY(),"y") # years

you can also use:

"m" - months
"d" - days
"ym" - year months
"yd" - year days

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=494468


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
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
Calculat years married or age of someone on today's date Chersie Excel Worksheet Functions 4 February 21st 05 07:11 PM
date and time ladimples247 New Users to Excel 2 February 16th 05 08:52 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM


All times are GMT +1. The time now is 01:13 PM.

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

About Us

"It's about Microsoft Excel"