OMG sum hours/minutes on report > 24hrs!

mcamp

New Member
Joined
Jun 29, 2009
Messages
40
ok so im gunna seriously scream here. I cannot figure out how to calculate the sum of hours and minutes in this report.

everything is good until the sum is greater than 23:59:00 (seconds never used)

(this is a date/time field hh:nn:ss)

I have tried multiple formulas trying to get around it but none of them are working.

sum(Left([totalhours],2)*60 + right([totalhours],2)

ive tried to wrap my head around converting the total time to a number but its like, if the hours are greater than 24 the correct hours arent even calculated, so how can it accurately convert it to a number

also, in the detail footer of the report its rare that the hours would be over 24, so it would need to be an Iif situation, where as the report footer will always be over 24 hours.


Print screen, as youll see the total hours say 17:00, but the corret total should be 41:30


anyone have any ideas, im stressin on this one :(

http://lordkazeoneink.com/thc/ps1.jpg
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
its in hh:nn:ss format though? only the first two digits would need to be *24?

that expression results in 00:00:00

any other ideas?? im desperate
 
Upvote 0
TotalHours is a field. i can create a sample db with the data if needed.

i just cannot figure out why this is so difficult lol
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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