Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default I am attempting to find the difference between two dates...

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default I am attempting to find the difference between two dates...

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.


"threee11" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default I am attempting to find the difference between two dates...

Hi

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

"threee11" wrote:

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

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
Subtracting Dates to Find the Difference in Hours Workbook Excel Worksheet Functions 6 January 31st 09 12:16 AM
Difference of two dates sajan chauhan Excel Discussion (Misc queries) 3 June 5th 07 04:47 AM
difference between dates RGB Excel Discussion (Misc queries) 2 July 21st 06 12:42 PM
Formula to find the working days difference between to dates? Mudgeman Excel Discussion (Misc queries) 2 May 15th 06 04:26 AM
how do i put formula to find difference between two dates A.D New Users to Excel 3 May 12th 05 05:14 PM


All times are GMT +1. The time now is 10:58 AM.

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

About Us

"It's about Microsoft Excel"