#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Calculate days

How i can calculate exact numbers of days months and year between 2 given
dates in MS Excel.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Calculate days

See:

http://www.cpearson.com/excel/datedif.aspx
--
Gary''s Student - gsnu200789


"salman" wrote:

How i can calculate exact numbers of days months and year between 2 given
dates in MS Excel.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Calculate days

hi
with 6/3/08 in a1 and 6/3/06 in b1...
=a1-b1
format as custom yy:mm:dd
the above formula and format produces....
01:12:31
or 1 year, 12 months, 31 days

regards
FSt1



"salman" wrote:

How i can calculate exact numbers of days months and year between 2 given
dates in MS Excel.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Calculate days

Note, that this will not always produce correct results.
It works with your example dates, but if you try
3/1/08 in A1 and 2/1/08 in B1 you will get
00:01:29

--
Regards
Roger Govier

"FSt1" wrote in message
...
hi
with 6/3/08 in a1 and 6/3/06 in b1...
=a1-b1
format as custom yy:mm:dd
the above formula and format produces....
01:12:31
or 1 year, 12 months, 31 days

regards
FSt1



"salman" wrote:

How i can calculate exact numbers of days months and year between 2 given
dates in MS Excel.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Calculate days

Wouldn't a naive user have hoped to get 2 years from such a question?
And if you add a day to the length of a period, and you use 7/3/08 in A1 and
6/3/06, wouldn't one hope to get 2 years 0 months 1 day, rather than 2 years
1 month 1 day?

Isn't DATEDIF a better bet?
--
David Biddulph

"FSt1" wrote in message
...
hi
with 6/3/08 in a1 and 6/3/06 in b1...
=a1-b1
format as custom yy:mm:dd
the above formula and format produces....
01:12:31
or 1 year, 12 months, 31 days

regards
FSt1



"salman" wrote:

How i can calculate exact numbers of days months and year between 2 given
dates in MS Excel.



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
How to Calculate No. of Days between two dates crimsonkng Excel Worksheet Functions 3 April 21st 07 02:17 AM
Calculate the Days migdad Excel Worksheet Functions 8 May 1st 06 12:53 AM
calculate days JR Excel Worksheet Functions 4 April 22nd 06 05:06 PM
how do I calculate the days between dates? stucklady! Excel Discussion (Misc queries) 7 February 12th 05 04:39 PM
HOW TO CALCULATE THE DAYS? Bel Excel Worksheet Functions 2 February 2nd 05 07:05 PM


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