#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 897
Default Subtracting Dates

I missed the part where you are using dates in dd/mm/yyyy instead of
mm/dd/yyyy, but it looks like you got your solution.


--JP

On Jan 28, 9:56*am, Dilly wrote:
Thanks for below, however this comes back to the problems i experienced as
described in my original post with a start date of 08/06/2007 08:43 and a
finsh date of 21/11/2007 13:00 shows as 14 days 4 hours and 17 minutes, when
it should be 166 days 4 hours and 17 minutes



"JP" wrote:
Put your start date and time in A5 (for example) and end date/time in
B5.


Here's the formula:


=(IF(INT(B5)-INT(A5)<1,24*(MOD(B5,1)-MOD(A5,1)),((INT(B5)-
INT(A5))*24)+24*(MOD(B5,1)-MOD(A5,1))))/24


Format as Custom: d "days," h "hours," mm "minutes"


Seehttp://tinyurl.com/2wu8yafor more assistance.


HTH,
JP


On Jan 28, 9:22 am, Dilly wrote:
Many thanks for below, which works for that specific start and end date,
however when i have a start date of 07/11/2007 12:29 and finish time of
07/11/2007 15:00 it gives an error "#DIV/0!" value instead of 0 days 2 hours
31 mins ??
Nearly there though i think.


Once again your assistance is greatly appreciated- Hide quoted text -


- Show quoted text -


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 Malik Excel Discussion (Misc queries) 4 October 1st 07 10:44 AM
Subtracting Dates BoniM Excel Discussion (Misc queries) 0 March 28th 07 12:17 AM
Subtracting Dates sam Excel Discussion (Misc queries) 3 March 2nd 06 12:47 PM
subtracting dates Brian Excel Discussion (Misc queries) 3 October 27th 05 07:54 PM
Subtracting dates? Bill R Excel Worksheet Functions 1 August 15th 05 05:37 AM


All times are GMT +1. The time now is 01:04 PM.

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"