Formula calculate minutes.

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,286
Office Version
  1. 2013
Platform
  1. Windows
Code:
=(F3-E3)*1440
Hello,
Above formula gives me the time calulation as minutes of between two cells.
Can you please give me solution to fix that problem given below?

[TABLE="width: 300"]
<tbody>[TR]
[TD="class: xl65, width: 100"]6:11 PM[/TD]
[TD="class: xl65, width: 100"]6:55 AM[/TD]
[TD="class: xl63, width: 100"]-676
[/TD]
[/TR]
</tbody>[/TABLE]

should not show the minutes as negative!

Many 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.
I wrote that backwards. 6:55AM is a smaller value than 6:11PM. In military time that would be 6:55 - 18:11
 
Upvote 0
6:11 is a lower value than 6:55. Written in military time it would be 6:55 - 18:11.
I am not sure what you are trying to say here as the formula you asked about already assumed that.

Did you try the formula I posted in Message #2 yet?
 
Upvote 0
I was answering the original posters question as to why the answer is negative. He stated that the answer should not be negative. He was subtracting a larger value (6:11PM/18:11) from a smaller value (6:55AM)
 
Upvote 0
I was answering the original posters question as to why the answer is negative. He stated that the answer should not be negative. He was subtracting a larger value (6:11PM/18:11) from a smaller value (6:55AM)
I am sorry... I mistook you for being the OP (your double post fooled me, but my fault for not looking back).
 
Upvote 0
If both times are always the same day, maybe ...

=(MAX(E3,F3)-MIN(E3,F3))*1440

M.
 
Upvote 0
[TABLE="width: 436"]
<colgroup><col><col span="2"><col></colgroup><tbody>[TR]
[TD]1)[/TD]
[TD]10:55 PM[/TD]
[TD]12:55 AM[/TD]
[TD]120[/TD]
[/TR]
[TR]
[TD]2)[/TD]
[TD]10:55 PM[/TD]
[TD]12:55 AM[/TD]
[TD]1,320[/TD]
[/TR]
</tbody>[/TABLE]

1)
Code:
=MOD(1440*(F14-E14),1440)

2)
Code:
=(MAX(E15,F15)-MIN(E15,F15))*1440


Hello All,
Sorry for late post.
Rick's formula helped me so far.
Other formula gives wrong result.
Thanks.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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