Time calc

Peter1973

Well-known Member
Joined
May 13, 2006
Messages
945
I am trying to get a simple time subtraction to work think it is my formats which are wrong

i am trying to get 23:00 - 01:25 to equal 21:35 and so on but can't seem to format it right.

Any help appreciated
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Peter1973

Well-known Member
Joined
May 13, 2006
Messages
945
I had tried that it should work but think something in my sheet is corrupt as it keeps returning #################, have tried it in a new sheet and it works fine. Thanks for the help.
 
Upvote 0

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
######### normally indicates a negative time. That might happen if your 1:25 was, in fact 25:25 [i.e. 1 day and 1:25] but formatted as h:mm. You can make sure that only the 1:25 is used with

=MOD(A1,1)-MOD(B1-1)
 
Upvote 0

Peter1973

Well-known Member
Joined
May 13, 2006
Messages
945
Everything is formatted as custom hh:mm, could it be that the cells are not actually in the order above ie I am actually calculating :
G4 - C4
g4=23:00 c4=00:35 so should give me 22:25.
 
Upvote 0

Forum statistics

Threads
1,191,164
Messages
5,985,031
Members
439,935
Latest member
Monty238

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
Top