Time Difference

AccessShell

Board Regular
Joined
Sep 5, 2015
Messages
50
Office Version
  1. 2003 or older
Platform
  1. Windows
In a cell, can I use a formula to get the time difference (in Hrs and Mins) from two other cells. the start Time (i.e. 7:02 AM), end Time (i.e. 8:23 AM).

Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Yes, format the cell as a date/time format using hh:mm.
But you will have issues you need to account for when it goes over midnight. In that case you'll need to use date values.
(to go over midnight, you need to input your time values including the date)


Book2
ABC
1Start TimeEnd TimeElapsed Time
207:0208:2301:21
314 Nov 2023 23:1515 Nov 2023 01:3202:17
Sheet1
Cell Formulas
RangeFormula
C2:C3C2=B2-A2
 
Upvote 0
Solution
Thank you. I will study it. The times will never go over midnight. They will always be AM times.
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,853
Members
449,194
Latest member
HellScout

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