Time Problem

MrData

Active Member
Joined
May 4, 2003
Messages
324
I'm supplied with three columns of data as shown in the table below. However the third column is supposed to show the time difference in minutes but there is a problem. As you can see the time difference is wrong. I've tried various formulas but cannot get it to work. Can anyone help?

Start End Incorrect Correct
01:09 01:10 1 1
01:09 01:00 -1449 -51
01:13 00:35 -1478 -38
01:13 00:50 -23 -23
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I'm not sure how you get -51 on the second row from 1:09 vs 1:00.

Assuming that was typo'd, try this formula:
Code:
=IF(B2< A2,-1,1)*ABS(A2-B2)*1440

edit - formula getting truncated
Ignore the space in "B2< A2"
 
Last edited:
Upvote 0
Is your data correct? For instance below you have:

01:09 01:10
01:09 01:00
01:13 00:35
01:13 00:50

You have one start time as 01:09 and an end time of 01:00?

It should just be a basic end minus start!
 
Upvote 0
I'm not getting the same values for all


Excel 2003
ABCDE
1StartEndIncorrectCorrectformula
21:091:10110:01
31:091:00-1449-51-0:09
41:130:35-1478-38-0:38
51:130:50-23-23-0:23
Sheet3
Cell Formulas
RangeFormula
E2=+B2-A2
 
Upvote 0

Forum statistics

Threads
1,203,538
Messages
6,055,992
Members
444,839
Latest member
laurajames

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