Sum of Hours and Minutes to dd hh mm

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
237
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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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,224,823
Messages
6,181,184
Members
453,020
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