Sum of Hours/Mins

Sunshine8790

Board Regular
Joined
Jun 1, 2021
Messages
86
Office Version
  1. 365
Platform
  1. Windows
I'm blanking on what is probably a very simple answer here.
In column G I have "Hours" and in column H I have "Minutes".
In J1 I have "Total time" and in J2 I'm trying to figure out how to get the sum of anything in column G (hours) combined with the sum of anything in column H (minutes).

So in the below example, I want the formula to return: 18 Hours and 21 minutes.
(Not 17 hours and 81 minutes)
Can someone please help me?
Is there a better way to do this to total both hours and minutes together properly if hours/mins goes in one column instead of 2?

HoursMinutesTotal Time:
--[formula to go here]
--
--
1046
--
--
--
735
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
This will not total if the hours go over 24.
Book1
ABCD
1Hours ReadMinutes ReadTotal Time Reading:
2--18:21:00
3--
4--
51046
6--
7--
8--
9735
Sheet4
Cell Formulas
RangeFormula
D2D2=SUM(IFERROR(TIME(A2:A9,B2:B9,0),0))
 
Upvote 0
This will not total if the hours go over 24.
Book1
ABCD
1Hours ReadMinutes ReadTotal Time Reading:
2--18:21:00
3--
4--
51046
6--
7--
8--
9735
Sheet4
Cell Formulas
RangeFormula
D2D2=SUM(IFERROR(TIME(A2:A9,B2:B9,0),0))
Is there a way to total them when they go over 24?
 
Upvote 0
formula:
Excel Formula:
=SUM(IFERROR(((A2:A9)/24)+((B2:B9)/(60*24)),0))

format: [hh]:mm:ss



1709062821295.png
 
Last edited:
Upvote 1
Solution
not for me.
what is the cell format you are using?
Book1
ABCD
1Hours ReadMinutes ReadTotal Time Reading:
2--28:21:00
3--
4100
51046
6--
7--
8--
9735
10
Sheet4
Cell Formulas
RangeFormula
D2D2=SUM(IFERROR(((A2:A9)/24)+((B2:B9)/(60*24)),0))
 
Upvote 0
not for me.
what is the cell format you are using?
Book1
ABCD
1Hours ReadMinutes ReadTotal Time Reading:
2--28:21:00
3--
4100
51046
6--
7--
8--
9735
10
Sheet4
Cell Formulas
RangeFormula
D2D2=SUM(IFERROR(((A2:A9)/24)+((B2:B9)/(60*24)),0))

1709064088438.png




1709064066653.png



What am I doing wrong? 😪
 
Upvote 0
use the braces brackets on the hours. it is a custom format [hh]:mm:ss
 
Upvote 0
use the braces brackets on the hours. it is a custom format [hh]:mm:ss
Oh!
I understand what you're saying, but for this spreadsheet I'm utilizing Excel Sharepoint and creating a customized option that isn't listed is not an option. I'll have to figure out a way to work around that.
Thank you very much for your help! :)
 
Upvote 0
I'm not familiar with that. But, I find that very strange that it doesn't allow for displaying of accumulating hours.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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