Calculation Issues

How to Display Negative Time Differences Correctly in Excel

Adam DavisAdam Davis Nov 11, 2026 869 views

Question details

The user needs a way to properly display negative time durations when subtracting actual and planned date-time values.

How to Display Negative Time Differences Correctly in Excel
Product
Excel
Device & OS
not provided
Scenario
Subtracting a later start time from an earlier finish time, resulting in a negative time value that needs to be visible on the spreadsheet.
Observed behavior
Excel displays a series of hash marks (######) instead of the negative time value because the default 1900 date system cannot process negative times.
Before you start

Determine whether you need the negative time result purely for visual display or for further mathematical calculations, as this will dictate whether you should use a text formula or change the workbook's entire date system.

Solution 1Recommended

Use a Formula to Convert Negative Time to Text

This is the safest and most recommended method, as it displays the negative time correctly with a minus sign without altering your workbook's underlying date system.

By utilizing the IF and TEXT functions, you can force Excel to evaluate the time difference. If the result is negative, the formula converts the absolute value into a text string and appends a minus sign to the front.

1
Select the result cell

Click on the empty cell where you want the time difference to be displayed.

2
Enter the time conversion formula

Assuming your planned finish is in cell A2 and actual finish is in cell B2, type the following formula: =IF(B2-A2<0,"-"&TEXT(ABS(B2-A2),"[h]:mm"),TEXT(B2-A2,"[h]:mm"))

3
Apply the formula

Press Enter. The cell will now display the negative time difference with a minus sign (e.g., -1:30) instead of hash marks.

Use a Formula to Convert Negative Time to Text
Calculation Limitation: Because the negative time is converted into a text string, you cannot directly use this specific output cell in further mathematical time calculations.
WPS Spreadsheet Solution

Calculate and Display Time Differences Easily in WPS Spreadsheet

WPS Spreadsheet offers full compatibility with Excel formulas, allowing you to seamlessly calculate time differences, apply custom formatting, and manage complex data without the hassle.

  1. 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open your spreadsheet containing the planned and actual time data.
  2. 2. Apply the time difference formula: Select the result cell and input the formula: =IF(B2-A2<0,"-"&TEXT(ABS(B2-A2),"[h]:mm"),TEXT(B2-A2,"[h]:mm")).
  3. 3. Format and save: Press Enter to view the correctly formatted negative time, then save your document seamlessly in .xlsx format.
Fully compatible with Microsoft Excel formulas, functions, and date systemsLightweight and fast performance for processing large datasetsFree to use with an intuitive, tabbed interfaceBuilt-in advanced formatting tools for time and date values
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show hash marks (######) for negative time?

Excel uses the 1900 date system by default, which cannot process or display negative date or time values. When a calculation results in a negative time, Excel displays hash marks to indicate that the value cannot be shown under the current formatting rules.

Can I still use the text-formatted negative time in other calculations?

No. When you use the TEXT formula to display negative time, the result becomes a text string rather than a numeric value. To perform further calculations, you will need to reference the original date-time values rather than the text result.

What happens to my existing dates if I switch to the 1904 date system?

Switching to the 1904 date system shifts the starting date of your workbook from January 1, 1900, to January 1, 1904. This means all existing dates currently entered in your workbook will be shifted forward by four years and one day, which can cause significant data discrepancies.