PC Review


Reply
Thread Tools Rate Thread

calculate the the diffrence between 2 Dates and time

 
 
LKWP
Guest
Posts: n/a
 
      2nd Jul 2008
I am trying to create a formula that calculates the diffrence beween the date
and the time. I.e result would be 3d 10m ot 3d 10m30s. Can anyone help??
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      2nd Jul 2008
How about

=INT(A7-A6)&"d "&TEXT(MOD((A7-A6),1),"h:mm:ss")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"LKWP" <(E-Mail Removed)> wrote in message
news:F6CF7FFF-F93F-4866-BB4D-(E-Mail Removed)...
>I am trying to create a formula that calculates the diffrence beween the
>date
> and the time. I.e result would be 3d 10m ot 3d 10m30s. Can anyone help??



 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      2nd Jul 2008
Are your date/time values combined in one cell, or separate cells for
date and for time?

Essentially, you just need to subtract the smaller (earlier) date/time
from the larger (later) date/time, and then apply a custom format to
the result as you require it, but you will need to account for hours
as well as minutes and seconds.

Hope this helps.

Pete

On Jul 2, 1:18*pm, LKWP <L...@discussions.microsoft.com> wrote:
> I am trying to create a formula that calculates the diffrence beween the date
> and the time. I.e result would be 3d 10m ot 3d 10m30s. Can anyone help??


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Calculating diffrence of dates joeu2004 Microsoft Excel Discussion 0 17th Dec 2010 05:22 PM
How to calculate diffrence in dates in days and Hours MsLearner Microsoft Excel Worksheet Functions 6 12th May 2010 02:55 PM
How to calculate diffrence between two dates Vianny Microsoft Access Form Coding 1 2nd Mar 2010 10:45 AM
calculate the diffrence in cost Calculate difference in price Microsoft Excel Worksheet Functions 3 18th Oct 2009 06:24 PM
how to calculate time diffrence mangesh Microsoft Excel Misc 2 10th Mar 2004 06:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 PM.