Sum of Hours and Minutes to dd hh mm

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
233
Office Version
  1. 2021
Platform
  1. Windows
Hi,
Cells are formatted [hh]:mm
W19 has 03:25
W20 has 26:14
W21 has 10:50

I am endeavouring to calculate the number of dd:hh:mm from the total of the 3 cells.

I tried the following to no avail, if some one could show me where I am going wrong I would appreciate it.
=INT(SUM(W19:W21)),HOUR(MOD(SUM(W19:W21,1)),MINUTE(MOD(SUM(W19:W21,1))
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
you could just format the cell
DD:HH:MM
and simply sum the Hours

OR concatenate the cells
=INT(B3)&":"&HOUR(B3)&":"&MINUTE(B3)
for a TEXT result

what are you planning ion doing with the result - just for a display - or want to use in a calculation

not sure how XL2BB will show

B3 is formatted
C3 is calc

Book7
ABC
1
2
301:09:121:9:12
Sheet1
Cell Formulas
RangeFormula
C3C3=INT(B3)&":"&HOUR(B3)&":"&MINUTE(B3)


i just entered 1.38333333333333
in general to see what happens
 
Upvote 0
Solution
Thanks,
I had formatted the target cell dd:[hh]:mm and was getting an incorrect answer.
Needed to remove the [ ]. Once done it works fine.
Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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