Recording positive and negative time formula

Leicester City Fox

Board Regular
Joined
Oct 7, 2016
Messages
91
Office Version
  1. 2019
Platform
  1. Windows
Hi There

I have two columns stating time Column A, Planed Time Column B Actual Arrived time.

For Example, planned time: 08:35, Arrived time 08:36 = (Difference) 00:01

But when it a negative time ie earlier than planned time it will not work this out.

Also I notice the actual arrival Time has the date showing 25/03/2019 with time example 25/03/2019 17:35:00 but it only show the time so I don’t know if this why my formula for positive and negative time difference don’t work or do I need to delete the date and if so how if it is not actual showing in the display cell?

If anybody can help with formula that will give both positive (+) and negative (-) time difference are be grateful.

Many Thanks

Leicester Fox
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
think you need to change the workbook date setting to 1904 from 1900
 
Last edited:
Upvote 0
You could change to the 1904 Date system.

See: https://excelribbon.tips.net/T006239_Displaying_Negative_Times.html

T6239F1.png
 
Upvote 0
Maybe something like this


A
B
C
1
Planned​
Arrived​
Result (minutes)​
2
12/06/2019 08:35​
12/06/2019 10:34​
+119​
3
12/06/2019 08:35​
12/06/2019 08:34​
-1​
4
11/06/2019 23:40​
12/06/2019 00:10​
+30​

Formula in C2 copied down
=(INT(B2)-INT(A2))*1440+(HOUR(B2)-HOUR(A2))*60+MINUTE(B2)-MINUTE(A2)

Format column C
Custom
+0;-0

Hope this heps

M.
 
Upvote 0





Hi Marcelo


Thank you for the formula it worked a treat ��


Many Thanks You’re a Star


The Leicester Fox



 
Upvote 0
Hi there
Thank for your reply unfortunately it didn’t resolve theproblem.
But Marcelo formula work ��
Thank You
Leicester Fox

 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,267
Members
448,558
Latest member
aivin

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