Excel Error Codes

How to Fix Excel Negative Time Difference Returning #VALUE! Error

Rana GarciaRana Garcia Nov 3, 2026 871 views

Question details

The user needs to display negative time differences correctly instead of encountering a #VALUE! error when using the TEXT function.

How to Fix Excel Negative Time Difference Returning #VALUE! Error
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 you start

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.

Solution 1Recommended

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.

1
Open Excel Options

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.

2
Navigate to Advanced Settings

In the Excel Options dialog box, click on 'Advanced' in the left pane to view advanced configuration settings.

3
Locate Calculation Settings

Scroll down through the Advanced settings until you find the section labeled 'When calculating this workbook'.

4
Enable the 1904 Date System

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.

Enable the 1904 Date System
Impact on Existing Dates: If your spreadsheet already contains dates, checking this option will add exactly 1,462 days (four years and one day) to them. It is best to enable this setting in a new, blank workbook or one strictly used for time-tracking.
Seamless Time Tracking with WPS

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. 1. Open WPS Spreadsheet: Launch WPS Office and open your time-tracking spreadsheet.
  2. 2. Access Options: Click on 'Menu' in the top-left corner and select 'Options' from the drop-down list.
  3. 3. Go to Calculation Settings: In the Options window, click on the 'Calculation' tab in the left-hand menu.
  4. 4. Enable 1904 Date System: Check the box for '1904 date system' and click 'OK' to instantly fix negative time errors.
Fully compatible with Microsoft Excel (.xlsx) formats and formulas.Easily toggle the 1904 date system to support negative time values natively.Free, lightweight, and fast spreadsheet processing for efficient data management.
microsoft office alternative - wps office

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.