Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dilly
 
Posts: n/a
Default compute the difference between two dates accurately

Date360 gives an inacurate answer that over the course of 20 years can be
over a month. Is there an accurate way of computing the difference between
two dates?
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

how about simply subtracting one from another
=B1-A1
where B1 holds the end date and cell A1 the start date

Why days360 unless you want to use 360 days per year convention.


"Dilly" wrote in message
...
Date360 gives an inacurate answer that over the course of 20 years can be
over a month. Is there an accurate way of computing the difference
between
two dates?



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=A1-B1

where A1 holds the later date and B1 the earlier date, format as general
DATE260 is an accounting function

Regards,

Peo Sjoblom

"Dilly" wrote:

Date360 gives an inacurate answer that over the course of 20 years can be
over a month. Is there an accurate way of computing the difference between
two dates?

  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

Dilly

See Chip Pearson's site for info on the DATEDIF Function.

http://www.cpearson.com/excel/datedif.htm


Gord Dibben Excel MVP

On Fri, 29 Apr 2005 12:46:04 -0700, "Dilly"
wrote:

Date360 gives an inacurate answer that over the course of 20 years can be
over a month. Is there an accurate way of computing the difference between
two dates?


  #5   Report Post  
Dilly
 
Posts: n/a
Default

Thanks but I tried that. for example: 2004/05/30 - 1986/06/24 returns
1917/12/06. actual answer should be 1917/11/06. it doesn't recognize zero
month.

"N Harkawat" wrote:

how about simply subtracting one from another
=B1-A1
where B1 holds the end date and cell A1 the start date

Why days360 unless you want to use 360 days per year convention.


"Dilly" wrote in message
...
Date360 gives an inacurate answer that over the course of 20 years can be
over a month. Is there an accurate way of computing the difference
between
two dates?






  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you just wanted the number of days, try formatting that cell as general.


Dilly wrote:

Thanks but I tried that. for example: 2004/05/30 - 1986/06/24 returns
1917/12/06. actual answer should be 1917/11/06. it doesn't recognize zero
month.

"N Harkawat" wrote:

how about simply subtracting one from another
=B1-A1
where B1 holds the end date and cell A1 the start date

Why days360 unless you want to use 360 days per year convention.


"Dilly" wrote in message
...
Date360 gives an inacurate answer that over the course of 20 years can be
over a month. Is there an accurate way of computing the difference
between
two dates?





--

Dave Peterson
  #7   Report Post  
Dilly
 
Posts: n/a
Default

Thanks, but I need it in yy/mm/dd format. see gord dibben's answer below.

"Dave Peterson" wrote:

If you just wanted the number of days, try formatting that cell as general.


Dilly wrote:

Thanks but I tried that. for example: 2004/05/30 - 1986/06/24 returns
1917/12/06. actual answer should be 1917/11/06. it doesn't recognize zero
month.

"N Harkawat" wrote:

how about simply subtracting one from another
=B1-A1
where B1 holds the end date and cell A1 the start date

Why days360 unless you want to use 360 days per year convention.


"Dilly" wrote in message
...
Date360 gives an inacurate answer that over the course of 20 years can be
over a month. Is there an accurate way of computing the difference
between
two dates?




--

Dave Peterson

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
i NEED THE DIFFERENCE OF DATES DOWN TO YEARS...IE 11/1/02-4/16/85. nancelsb Excel Worksheet Functions 1 February 14th 05 02:16 AM
Calculate difference between two dates Trainer Excel Worksheet Functions 1 February 11th 05 02:04 PM
How do I calculate difference in days & hours between two dates e. probi2 Excel Worksheet Functions 1 January 12th 05 03:59 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 1 November 8th 04 02:16 PM
Difference between two dates in months with decimals effem Excel Worksheet Functions 3 November 5th 04 05:23 PM


All times are GMT +1. The time now is 09:35 AM.

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"