Adding hours greater than 9999:59:59

Jean Marie

New Member
Joined
Jun 15, 2022
Messages
3
Office Version
  1. 2010
Platform
  1. Windows
My daughter is a pilot. I do the follow up of flown hours (mandatory for commercial pilots), having created for her a spreadsheet .
All worked fine up to where she is now exceeding 10,000 hours: I cannot add more hours, receiving a "#value" message...
Is there a way to go on with adding hours above 10000?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
What is in the cell where you are getting a VALUE error? Is it a formula? What is the formula? What is in all the cells the formula is referencing?

It is definitely possible to enter more than 10,000 hours as a time. You must use the custom format [h]:mm:ss.

$scratch.xlsm
AB
110671:00:00444.625
macro while typing
Cell Formulas
RangeFormula
B1B1=A1
 
Upvote 0
What is in the cell where you are getting a VALUE error? Is it a formula? What is the formula? What is in all the cells the formula is referencing?

It is definitely possible to enter more than 10,000 hours as a time. You must use the custom format [h]:mm:ss.

$scratch.xlsm
AB
110671:00:00444.625
macro while typing
Cell Formulas
RangeFormula
B1B1=A1
it is a simple add formula: +a1+a2; ex: 9980:25 + 125:34 shows the VALUE error, and the cell is well formated as [h]:mm
 
Upvote 0
I am getting a correct result using that exact data. You must have some issue with how you are entering that data into the cells.

$scratch.xlsm
A
19980:25:00
2125:34:00
3
410105:59:00
macro while typing
Cell Formulas
RangeFormula
A4A4=A1+A2
 
Upvote 0
I am getting a correct result using that exact data. You must have some issue with how you are entering that data into the cells.

$scratch.xlsm
A
19980:25:00
2125:34:00
3
410105:59:00
macro while typing
Cell Formulas
RangeFormula
A4A4=A1+A2
Here is what I find on a Microsoft page:
QUOTE: In Microsoft Excel 5.0 and in later versions of Excel, you can enter times that exceed 24 hours by using a number format that includes [h]. The square brackets around the "h" instruct Excel to calculate times beyond 24-hour intervals, which allows you to enter times that exceed 24 hours. If you enter times that exceed 24 hours, Excel automatically applies a number format that includes the [h] code.

There are limits that apply to times that use this format. If you type a time value into a cell or use a formula to return a time that exceeds the limits, you may notice either of the following behaviors:

  • If you enter a time that exceeds the limits, the time may appear as a text string.

    For example, if you type the following time
    20000:00:00 the time appears in the cell as a text string aligned to the left.
  • If you use a formula to return a time that exceeds the limits, the formula returns a series of pound or number signs (####).
The maximum time value that you can type into a cell is 9999:59:59. If you type a value that is greater than or equal to 10,000 hours (10000:00:00), the time appears as a text string.

The maximum time value that you can calculate using a formula is 71003183:59:59. This value equates to 12/31/9999 23:59:59, which is the maximum time that you can use in Excel 2000. Unquote
That's exactly my problem: if you type a number of hours in excess of 9999:59, it returns a text string which you cannot use for additions, despite the correct formatting of the cell. However, if you use a formula (importing the numbers from another spreadsheet, for example, it seems to work). I would just like not to import the figures....
Thanks for your reply: I cannot understand why it works on your site: I tripled checked the formatting, etc... and it does not work, which seems in accord with Microsoft's quote...
 
Upvote 0
Instead of maintaining the data in hour format, try using the decimal equivalent.

Date and Time 3.xlsm
ABCDEF
1Converted to decimal
29980:25125:34:0010105:5910,105.9810.0010,115.98
3
410,115.98
58.00
612.00
78.00
88.00
98.00
108.00
1110,167.9810,167.9840.0010,207.98
4b
Cell Formulas
RangeFormula
C2C2=SUM(A2:B2)
D2D2=C2*24
F2,E11F2=D2+E2
A4A4=F2
A11A11=SUM(A4:A10)
 
Upvote 0
if you type a number of hours in excess of 9999:59, it returns a text string which you cannot use for additions, despite the correct formatting of the cell. However, if you use a formula (importing the numbers from another spreadsheet, for example, it seems to work).
The example you gave me was a formula
it is a simple add formula
and you said it wasn't working.

I am curious as to the big picture here. I am imagining that your daughter keeps a flight log with start and end times of each flight as m/d/yyyy hh:mm. Another column would calculate duration formatted as hh:mm. Another formula would sum the durations for total flight hours formatted as [h]:mm. All of that should work fine with no formatting problems or errors.

Alternatively she would keep a log with the hours for each flight directly entered, in which case you would just use a SUM and not even need to use a time format.

Can you give us the bigger picture so we can help with the overall solution?
 
Upvote 0
Date and Time 3.xlsm
ABCDEFG
1Start EndTime format9999:59
213-Jun-22 12:0013-Jun-22 21:369:3610009:35
314-Jun-22 19:1215-Jun-22 2:247:1210016:47
416-Jun-22 2:2416-Jun-22 6:244:0010020:47
5
6Start EndDecimal9,999.98
713-Jun-22 12:0013-Jun-22 21:369.6010,009.58
814-Jun-22 19:1215-Jun-22 2:247.2010,016.78
916-Jun-22 2:2416-Jun-22 6:244.0010,020.78
10
4b
Cell Formulas
RangeFormula
F2:F4F2=E2-D2
G2:G4,G7:G9G2=G1+F2
F7:F9F7=(E7-D7)*24
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

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