How to Fix Excel Negative Time Difference Returning #VALUE! Error
Question details
The user needs to display negative time differences correctly instead of encountering a #VALUE! error when using the TEXT function.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Subtracting a larger time value from a smaller time value using the =TEXT() formula, which results in a negative time difference.
- Observed behavior
- Excel returns a #VALUE! error because the default 1900 date system does not support the display of negative time values.
Before changing the date system in your spreadsheet, it is highly recommended to back up your workbook. Switching date systems can shift existing dates in your file by four years, which may disrupt historical data.
Enable the 1904 Date System
Switching your workbook to the 1904 date system allows Excel to natively calculate and display negative time values without throwing errors.
By default, Excel uses the 1900 date system, which cannot represent negative dates or times. Enabling the 1904 date system shifts the starting epoch, granting the software the ability to display negative times correctly. However, use caution if your workbook already contains date entries.
Click on the 'File' tab in the top-left corner of your Excel workbook, then select 'Options' at the bottom of the left-hand menu.
In the Excel Options dialog box, click on 'Advanced' in the left pane to view advanced configuration settings.
Scroll down through the Advanced settings until you find the section labeled 'When calculating this workbook'.
Check the box next to 'Use 1904 date system' and click the 'OK' button to apply the changes. Your negative time differences will now display correctly.

Use an IF Formula Workaround
If you cannot change your date system because of existing dates, use an IF formula to display the negative time as a formatted text string.
Handle Negative Time Calculations Easily in WPS Office
WPS Spreadsheet provides a familiar, robust environment for complex time and date calculations. You can easily switch date systems just like in Excel to track negative time differences perfectly.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your time-tracking spreadsheet.
- 2. Access Options: Click on 'Menu' in the top-left corner and select 'Options' from the drop-down list.
- 3. Go to Calculation Settings: In the Options window, click on the 'Calculation' tab in the left-hand menu.
- 4. Enable 1904 Date System: Check the box for '1904 date system' and click 'OK' to instantly fix negative time errors.

Frequently Asked Questions
Why does Excel show a #VALUE! or ###### error for negative times?
By default, Excel uses the 1900 date system, which is designed to handle only positive dates and times. When a formula subtracts a larger time from a smaller time, the result is negative, causing Excel to return a #VALUE! error (when using the TEXT function) or a continuous row of hash marks (######) in standard formatting.
Will enabling the 1904 date system ruin my spreadsheet?
It won't ruin the spreadsheet, but it will shift any previously entered dates forward by four years and one day (1,462 days). If you are only calculating times and durations without specific calendar dates, it is perfectly safe. Otherwise, use a formula workaround.
Can I format negative time in Excel without changing the date system?
Yes, you can bypass the date system limitation by using formulas. By utilizing the IF function combined with the TEXT function, you can identify negative differences, subtract the smaller time from the larger time to get a positive value, and then append a minus sign (-) as text.




