Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
D L Barnard
 
Posts: n/a
Default calculate number of years

the website says to calculate number of years type: =year(A3)-year(A2). when
i type this is i get a weird answer. problem is not that i get the number
signs....i get a date 1900. for example: 1/1/1900 0:00. please advise for
this is for homework, university. thank you to whomever responds.

D L Barnard
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

Format the cell for General or Number, not Date. Or, you can use
the DATEDIF function:

=DATEDIF(date1,date2,"y")

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


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




"D L Barnard" wrote in
message
...
the website says to calculate number of years type:
=year(A3)-year(A2). when
i type this is i get a weird answer. problem is not that i get
the number
signs....i get a date 1900. for example: 1/1/1900 0:00.
please advise for
this is for homework, university. thank you to whomever
responds.

D L Barnard



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
2003= negative number&2004= negative number How Do I Calculate gro Jason Excel Worksheet Functions 1 January 14th 05 05:24 PM
Does Excel 2000 have a 'datedif' function to calculate the number. Kaddy Excel Worksheet Functions 7 December 11th 04 08:53 PM
Calculate months and years Ned Ludd Excel Discussion (Misc queries) 5 December 10th 04 01:57 PM
calculate month from week number ankman Excel Worksheet Functions 2 November 24th 04 01:27 AM
How do you calculate the nth root of a number in Excel 2003? William Excel Worksheet Functions 2 November 17th 04 04:19 PM


All times are GMT +1. The time now is 12:51 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"