I am attempting to find the difference between two dates...

T

threee11

I am attempting to find the difference between two dates (in terms of days,
months, and years) but I always get an additional month added on. Why? And
how can I fix?

For instance, if I want to find the difference between 1/1/2010 and
2/1/2010; it returns 2/0/0
 
M

Mike H

Have a look at Chip Pearson's explanation of DATEDIF

=DATEDIF(A1,B1,"y")&" years "&DATEDIF(A1,B1,"ym")&" months
"&DATEDIF(A1,B1,"md")
&" days"

http://www.cpearson.com/EXCEL/datedif.aspx

be careful ewith this because it can throw up some odd results and if you
search this forum you'll discover what they are
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
E

Eduardo

Hi

=DATEDIF(D5,E5,"y")&" years "&DATEDIF(D5,E5,"ym")&" months
"&DATEDIF(D5,E5,"md")&" days"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top