#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default HELP

I am creating a large spreadsheet. One colunm has dates(mm/dd/yyyy) I need to
create another column that refers to the date column which will produce a
certain amount of years.
Example.
The date column shows when an employee was hired.Say 05/02/1968. The next
column should show that he has worked for 40 years. Therefore I should see
the number 40 in the new column. How do I go about doing the function to get
this information show in the column? Please email me at
with any help you can give. I will be eternally greatful.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 396
Default HELP

If the date is in cell A1:

=YEAR(TODAY())-YEAR(A1)+1

There are more elaborate alternatives than this (DATEDIF), but first try to
set this up, and then go for the alternatives if you want.


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"GRANDIVA77" wrote:

I am creating a large spreadsheet. One colunm has dates(mm/dd/yyyy) I need to
create another column that refers to the date column which will produce a
certain amount of years.
Example.
The date column shows when an employee was hired.Say 05/02/1968. The next
column should show that he has worked for 40 years. Therefore I should see
the number 40 in the new column. How do I go about doing the function to get
this information show in the column? Please email me at
with any help you can give. I will be eternally greatful.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default HELP

If your dates are in Col A then enter this in B1 and copy down...
=DATEDIF(A2,NOW(),"y")

This will give completed years

"GRANDIVA77" wrote:

I am creating a large spreadsheet. One colunm has dates(mm/dd/yyyy) I need to
create another column that refers to the date column which will produce a
certain amount of years.
Example.
The date column shows when an employee was hired.Say 05/02/1968. The next
column should show that he has worked for 40 years. Therefore I should see
the number 40 in the new column. How do I go about doing the function to get
this information show in the column? Please email me at
with any help you can give. I will be eternally greatful.

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



All times are GMT +1. The time now is 03:55 AM.

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"