How To Calculate Hours Minutes Seconds

jamiguel77

Active Member
Joined
Feb 14, 2006
Messages
387
Office Version
  1. 2016
  2. 2010
  3. 2007
Platform
  1. Windows
  2. Web
How To determine Hours Minutes Seconds...

Libro2
ABC
1TaskStart DateTime Elapsed
2SALIDA16/01/2024 11:45
3FORMATO16/01/2024 00:12-0.48125
4FACTURAS17/01/2024 10:481.44166667
5DOCUMENTOS ADUANA17/01/2024 11:350.03263889
6CARTA PORTE17/01/2024 12:230.03333333
7DODA17/01/2024 12:470.01666667
8IMPO17/01/2024 15:410.12083333
9CARTA PORTE17/01/2024 17:220.07013889
10DODA17/01/2024 05:33-0.49236111
Hoja1
Cell Formulas
RangeFormula
C3:C10C3=B3-B2


in column C i want display in format hour minutes seconds

And in C11 sum the total minutes elapsed?

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You can format the column using Custom format h:mm:ss

But you are going to have a problem in rows 3 and 10 because Excel will not display negative times. How can elapsed time be negative?

$scratch.xlsm
ABC
1TaskStart DateTime Elapsed
2SALIDA16/01/2024 11:45
3FORMATO16/01/2024 00:12###########
4FACTURAS17/01/2024 10:4810:36:00
5DOCUMENTOS ADUANA17/01/2024 11:350:47:00
6CARTA PORTE17/01/2024 12:230:48:00
7DODA17/01/2024 12:470:24:00
8IMPO17/01/2024 15:412:54:00
9CARTA PORTE17/01/2024 17:221:41:00
10DODA17/01/2024 05:33###########
Sheet10
Cell Formulas
RangeFormula
C3:C10C3=B3-B2
 
Upvote 0
yes you are Right:

Libro2
ABC
1TaskStart DateTime Elapsed
2SALIDA16/01/2024 11:45
3FORMATO16/01/2024 12:1200:27:00
4FACTURAS17/01/2024 10:4822:36:00
5DOCUMENTOS ADUANA17/01/2024 11:3500:47:00
6CARTA PORTE17/01/2024 12:2300:48:00
7DODA17/01/2024 12:4700:24:00
8IMPO17/01/2024 15:4102:54:00
9CARTA PORTE17/01/2024 17:2201:41:00
10DODA17/01/2024 17:3300:11:00
Hoja1
Cell Formulas
RangeFormula
C3:C10C3=B3-B2


Fized, how to determine in C11 the Result of Time?
 
Upvote 0
You said you want a sum of all the times, which is just the last time minus the first time. Do you also want that in hours/minutes/seconds? Note that this is more than one day so the format has to be [h]:mm:ss to show more than 24 hours.

$scratch.xlsm
ABC
1TaskStart DateTime Elapsed
2SALIDA16/01/2024 11:45
3FORMATO16/01/2024 12:120:27:00
4FACTURAS17/01/2024 10:4822:36:00
5DOCUMENTOS ADUANA17/01/2024 11:350:47:00
6CARTA PORTE17/01/2024 12:230:48:00
7DODA17/01/2024 12:470:24:00
8IMPO17/01/2024 15:412:54:00
9CARTA PORTE17/01/2024 17:221:41:00
10DODA17/01/2024 17:330:11:00
11TOTAL29:48:00
Sheet10
Cell Formulas
RangeFormula
C3:C10C3=B3-B2
C11C11=B10-B2
 
Upvote 0
Strange:
See the Total, why?

Libro2
ABC
1TaskStart DateTime Elapsed
2SALIDA16/01/2024 11:45
3FORMATO16/01/2024 12:1200:27:00
4FACTURAS17/01/2024 10:4822:36:00
5DOCUMENTOS ADUANA17/01/2024 11:3500:47:00
6CARTA PORTE17/01/2024 12:2300:48:00
7DODA17/01/2024 12:4700:24:00
8IMPO17/01/2024 15:4102:54:00
9CARTA PORTE17/01/2024 17:2201:41:00
10DODA17/01/2024 17:3300:11:00
11Total Time05:48:00
Hoja1
Cell Formulas
RangeFormula
C3:C10C3=B3-B2
C11C11=B10-B2
 
Upvote 0
You need to format the cell as [h]:mm:ss like 6String mentioned.
 
Upvote 0
Yes
wich i am doing bad?
1705677479400.png
 
Upvote 0
See under Tipo where it says
Excel Formula:
hh:mm:ss
You must change that to
Excel Formula:
[h]:mm:ss
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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