Calculating time over 10000 hours

SDuque

New Member
Joined
Feb 18, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I am a trying to figure out a percentage of time and running into trouble when the total number of hours is more than 10000. For example, I have trucks out of service for 10456:15:48 (sum of hours from each truck over a month). The total possible hours of service is 26000:00:00. It won't calculate any math, such a percentage of out of service hours, with hours over 10000 ... ideas? Thank you.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
hi and welcome to MrExcel
i suggest you convert individual truck data to decimal, there should be no reason why excel cant manage a floating point calculation such as what you need in decimal
 
Upvote 0
I have trucks out of service for 10456:15:48 (sum of hours from each truck over a month). The total possible hours of service is 26000:00:00. It won't calculate any math, such a percentage of out of service hours, with hours over 10000 ... ideas?

We cannot enter times greater than 9999:59:59.999.

But we can calculate and display times up to 71003183:59:59.499 formatted as Custom [h]:mm:ss, and up to 71003183:59:59.999 formatted as Custom [h]:mm:ss.000 .

(FYI, 71003160 corresponds to the number of hours in 2958465 days, which is the "serial number" of the max date 12/31/9999.)

So there should be no problem calculating a sum of hours that is displayed as 10456:15:48, as demonstrated below.

To enter time constants greater than or equal to 10000 hours, enter the formula =hours/24, formatted as Custom [h]:mm:ss . For example, =26000/24, as demonstrated below.

(Alternatively, we could enter the constant 12/18/1902 8:00, formatted as Custom [h]:mm:ss, having discovered that INT(26000/24) is 1083, the "serial number" for the date 12/18/1902. Not really recommended.)

Then time calculations (e.g. including percentage of out of service hours) work just fine, as demonstrated below.

Book1
AB
1out of srvc hrs
25456:15:48entered as formatted
35000:00:00
4
510456:15:48total out of srvc hrs
626000:00:00total srvc hrs
740.22%pct out of srvc hrs
8
9max time calc
1071003160:00:00.000entered 12/31/9999
1123:59:59.999entered as formatted
1271003183:59:59.999sum
13
1471003183:59:59.999entered 12/31/9999 23:59:59.999
Sheet1


Select cells or hover cursor over cells to see formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,693
Members
449,048
Latest member
81jamesacct

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