Formula for Time Difference

JWSafe

New Member
Joined
Dec 13, 2023
Messages
10
Office Version
  1. 365
Platform
  1. MacOS
I'm just to find a formula that calculates either a positive OR negative difference returned in minute formate.

Start TimeLogged Start TimeDifferencee.g
8:00:00 AM8:20:00 AM-20
8:00:00 AM7:45:00 AM15
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try like this

Select File > Options > Advance > Activate "1904 date System"

1707278744568.png


the result will not be an error
1707278856859.png
 
Upvote 0
Time 2023.xlsm
DEF
1
2Start TimeLogged Start TimeDifference
38:00:00 AM8:20:00 AM-20
48:00:00 AM7:45:00 AM15
3a
Cell Formulas
RangeFormula
F3:F4F3=IF(D3>E3,(D3-E3)*1440,-((E3-D3)*1440))
 
Upvote 0
=(A2-B2)*1440

Format as General

Book1
ABC
1Start TimeLogged Start TimeDifference
28:00:00 AM8:20:00 AM-20
38:00:00 AM7:45:00 AM15
Sheet1
Cell Formulas
RangeFormula
C2:C3C2=(A2-B2)*1440
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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