Time Calculation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
How do I calculate the elapsed time between the following dates:
2/2/02 09:15
2/3/02 17:15
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Assuming that you don't want a decimal answer (28.3333 days) which you can get by simply subtracting one from the other....

With your first time in A1, the second in A2 you could try...
=CONCATENATE(TRUNC(A2-A1)," days ",TRUNC((A2-A1-TRUNC(A2-A1))*24)," hours ",TRUNC(((A2-A1-TRUNC(A2-A1))*24)-TRUNC((A2-A1-TRUNC(A2-A1))*24))*60, " minutes")

which will give you
"28 days 8 hours 0 minutes" as text

HTH

GaryB
This message was edited by GaryB on 2002-02-28 00:57
 
Upvote 0
On 2002-02-27 21:27, Anonymous wrote:
How do I calculate the elapsed time between the following dates:
2/2/02 09:15
2/3/02 17:15

In C2 enter:

=((B2-A2)*24)/24

where A2 is earlier in time than B2 (that is, B2 > A2, wrt to date.

Custom format C2 as [h]:mm

I get wrt the example: 32:00

Is this what you're looking for?
 
Upvote 0
There seems to be quite a discrepency between the offered solutions - is your later date 3-FEB-02 or 2-MAR-02 ??
 
Upvote 0
On 2002-02-28 02:51, Anonymous wrote:
There seems to be quite a discrepency between the offered solutions - is your later date 3-FEB-02 or 2-MAR-02 ??

Never assume everybody encodes the world as you do. Seeing

"How do I calculate the elapsed time between the following dates:
2/2/02 09:15
2/3/02 17:15"

I assumed American usage: mm/dd/yy

that is:

2-Feb-02 09:15
3-Feb-02 17:15

where 3-Feb-02 is later in time, if you ask me.
 
Upvote 0

Forum statistics

Threads
1,223,333
Messages
6,171,511
Members
452,407
Latest member
Broken Calculator

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top