How to Fix the Excel TIME Function #NUM! Error for Large Seconds Values
Question details
The user needs to convert a large total number of seconds into a standard time format but is encountering a #NUM! error when using the TIME function.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Converting a large total number of seconds into a standard hours, minutes, and seconds time format.
- Observed behavior
- The TIME function returns a #NUM! error because the provided seconds value exceeds Excel's supported argument limit of 32,767.
Ensure the cell containing your total seconds data is formatted as a General or Number type before applying the new time conversion formula.
Use INT and MOD Functions to Calculate Time Components
Split the total seconds into individual hour, minute, and second components to bypass the TIME function's argument limits.
Excel's TIME function is strictly designed to accept arguments ranging from 0 to 32,767. If your total seconds exceed this limit, passing the value directly to the TIME function will result in a #NUM! error. By utilizing the INT and MOD functions, you can safely break down the total into hours, minutes, and remaining seconds.
Click on the empty cell where you want the final formatted time to appear.
Type the formula =TIME(INT(A2/3600),INT(MOD(A2,3600)/60),MOD(A2,60)), replacing 'A2' with the reference to the cell containing your total seconds.
Press Enter to apply the formula. If the result displays as a decimal number, right-click the cell, select 'Format Cells', and choose a Time format such as 'hh:mm:ss'.

Fix Time Calculation Errors Easily with WPS Spreadsheet
WPS Spreadsheet fully supports advanced time calculations and offers flawless compatibility with standard Excel formulas like TIME, INT, and MOD. You can resolve argument limits and format your data effortlessly without dealing with complex workarounds.
- 1. Open your dataset in WPS: Launch WPS Spreadsheet and open the workbook containing your raw seconds data.
- 2. Apply the calculation formula: Select a blank cell and input =TIME(INT(A2/3600),INT(MOD(A2,3600)/60),MOD(A2,60)) to convert the total seconds.
- 3. Format the output cell: Right-click the result cell, click 'Format Cells', and select your preferred Time layout from the Number tab.

Frequently Asked Questions
Why does the Excel TIME function return a #NUM! error?
The TIME function in Excel only supports hour, minute, and second arguments up to a maximum value of 32,767. If any of the values you pass to it exceed this number, Excel cannot process the input and returns a #NUM! error.
How can I convert total seconds to time without using the TIME function?
You can divide the total seconds by 86,400 (the total number of seconds in a single day) by typing =A2/86400 in a blank cell, and then format that cell as a Time value (e.g., hh:mm:ss).
What does the MOD function do in this specific time conversion formula?
The MOD function returns the remainder after division. In this formula, MOD(A2, 60) calculates the leftover seconds that do not make up a full minute, allowing you to accurately extract the exact seconds component for your time layout.




