Calculate Positive or Negative Minutes Between Two Times in Excel
Question details
Calculate the difference between a backtimed time and a program start time and display it as positive or negative minutes and seconds.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains a program start time and a backtimed time that need to be compared.
- Observed behavior
- The desired result is a signed elapsed time in minutes and seconds.
Enter the program start time in A2 and the backtimed time in B2 as valid Excel time values. If the times fall on different dates, include the dates in both cells so the difference reflects the correct day.
Display the signed difference with a text formula
Use this method to show positive and negative minutes and seconds without changing the workbook's date system.
Select an empty cell such as C2 and enter =IF(B2-A2<0,"-","")&TEXT(ABS(B2-A2),"[m]:ss").
Press Enter. The cell displays a minus sign when the backtimed time in B2 is earlier than the start time in A2, such as -2:30.
Drag the fill handle from C2 down to calculate the differences for additional rows.

Display negative time values with the 1904 date system
Use this method when the result must remain a numeric time value and changing the workbook's date system is acceptable.
Show Signed Minutes and Seconds in WPS Spreadsheet
Use a formula in WPS Spreadsheet to display the difference between two times with a minus sign when needed.
- 1. Open your spreadsheet: Open WPS Spreadsheet and select File > Open to load your workbook.
- 2. Enter the times: Place the program start time in A2 and the backtimed time in B2. Include dates if the times are on different days.
- 3. Calculate the signed difference: Select C2 and enter =IF(B2-A2<0,"-","")&TEXT(ABS(B2-A2),"[m]:ss").
- 4. Fill other rows: Press Enter, then drag the fill handle down from C2 if you have more time pairs.

Frequently Asked Questions
Why does Excel show hash marks for a negative time?
Excel's default 1900 date system cannot normally display negative time values. Use the signed text formula or, if appropriate for the workbook, enable the 1904 date system in File > Options > Advanced.
How can I calculate the difference as a number of minutes?
Enter =(B2-A2)*1440 in a cell and format it as General or Number. The result can be positive or negative and can be used in further calculations.
What if the times are on opposite sides of midnight?
Include the correct date with each time in A2 and B2 before subtracting them. Time values alone do not identify which day each time belongs to.
What does the [m]:ss format do?
The custom format [m]:ss displays total elapsed minutes and seconds, including minutes beyond 59. Apply it through Format Cells > Number > Custom.




