How to Fix Excel Displaying 0.02 Instead of a Time Difference
Question details
The user is trying to subtract two time values in Excel to find the difference but receives a decimal value like 0.02 instead of a standard time format or zero.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Subtracting a specific time (e.g., 8:30 AM) from another time (e.g., 8:00 AM) to calculate a time duration.
- Observed behavior
- Excel outputs a fractional decimal number representing a portion of a 24-hour day (such as 0.02 for 30 minutes) instead of displaying the time difference in hours and minutes.
Ensure that the cells containing your original starting and ending times are correctly formatted as 'Time' rather than 'Text' before performing any subtraction formulas.
Format the Result Cell as Time
Change the cell format of your calculated result from General to Time so Excel translates the decimal day fraction back into hours and minutes.
Excel stores all time values as fractions of a 24-hour day. For example, 12:00 PM is exactly 0.5, and 30 minutes equates to 30/1440, or approximately 0.0208. When you subtract two times, Excel may default the result cell to a 'General' number format, displaying the raw underlying decimal.
By reformatting the cell to a Time format, Excel will display the calculated duration accurately.
Click on the cell displaying the 0.02 decimal value.
Right-click the selected cell and choose 'Format Cells' from the context menu, or press Ctrl+1 on your keyboard.
Go to the 'Number' tab, select 'Time' in the Category list, choose your preferred format (e.g., 13:30), and click 'OK'.

Convert the Decimal to Hours or Minutes
If you need the result expressed as a standard decimal number of hours (e.g., 0.5 hours) or minutes instead of a clock format, multiply the calculation by 24 or 1440.
How to Calculate Time Differences in WPS Spreadsheet
WPS Spreadsheet seamlessly handles time calculations and cell formatting, making it incredibly easy to track durations without dealing with confusing decimal fractions. It operates exactly like Microsoft Excel, giving you a smooth transition.
- 1. Open your workbook in WPS Spreadsheet: Launch WPS Office and open the file where you need to calculate time differences.
- 2. Enter the subtraction formula: Select an empty cell and enter your formula, such as `=(B2-A2)`, then press Enter.
- 3. Format the result: Right-click the result cell, click 'Format Cells', navigate to the 'Time' category, and pick the desired clock format.

Frequently Asked Questions
How does Excel store time values internally?
Excel stores times as fractional parts of a 24-hour day. For example, 12:00 PM represents half a day and is stored as 0.5. One hour is 1/24 (approx 0.0416), and 30 minutes is 30/1440 (approx 0.0208).
Why does my time subtraction result show as #####?
This happens when the result of a time subtraction is negative (e.g., subtracting 5:00 PM from 9:00 AM) and your cell is formatted as Time. The default 1900 date system in Excel cannot display negative times. You can fix this by using the formula `=ABS(End_Time - Start_Time)`.
How can I calculate time difference in total minutes?
Since there are 1440 minutes in a 24-hour day, subtract the start time from the end time and multiply the entire result by 1440 (e.g., `=(B1-A1)*1440`). Ensure the result cell is formatted as 'General' or 'Number'.




