Question Locked

excel problem

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to find the form to get the real time
for example

01/08/2000 to 01/08/2007

so the diferences is 7 years

but I don?t know how to do it just I wante the diferences....

the result = 7 year

4 replies

by bschaettle

If you place those two dates into cells (say, A1 and B1) and then subtract
=B1-A1
the result will be the difference in days.
To get years, divide by 365.25
=(B1-A1)/365.25
Don't forget to format the result as a number instead of a date.

by nodisalsi

Assuming CELL1 and CELL2 are formatted as Date
= YEAR(CELL2) - YEAR(CELL1)
Make sure this cell is formatted as Number with 0 decimal places.

I trust this solves your problem. :)

by bschaettle

Using the YEAR function will give erroneous results. If the two dates are for example,

December 5, 2003 and
January 5, 2005

Using the YEAR function will give an answer of 2.0 when the dates are actually only 13 months apart.

This discussion is closed to new replies.