Time calculations in Google Sheets are giving wrong results, durations are incorrect, totals show weird decimals, or formulas return unexpected values.
This usually shows up as negative times, incorrect totals (like 2:30 showing as 0.104), or formulas not recognizing time properly.
This guide fixes it step by step.
Why the Issue Happens
- Time stored as text instead of time value
- Incorrect time format (12-hour vs 24-hour confusion)
- Not using proper time functions
- Summing time without correct format
- Negative time calculations (end < start)
- Mixing date and time incorrectly
- Using arithmetic instead of time functions
- Time exceeding 24 hours not formatted correctly
Step-by-Step Fixes
Step 1: Check If Time is Stored Correctly
Quick test:
=ISNUMBER(A2)
- TRUE → valid time
- FALSE → text (problem)
If FALSE, convert it.
Step 2: Convert Text to Time
Fix using:
=TIMEVALUE(A2)
Or:
=VALUE(A2)
Then format as time:
- Format → Number → Time
Step 3: Use Correct Time Difference Formula
Correct way to calculate duration:
=EndTime - StartTime
Example:
=B2 - A2
Then format result as time.
Step 4: Fix Negative Time Errors
If end time is earlier than start time (overnight shift):
Wrong:
=B2 - A2
Fix:
=IF(B2<A2, B2+1, B2) - A2
This handles next-day calculations.
Step 5: Format Total Time Correctly
If total exceeds 24 hours, default format resets.
Problem:
- 26 hours → shows as 2:00
Fix:
- Format → Custom → use:
[h]:mm:ss
This shows total hours properly.
Step 6: Fix Decimal Time Results
Example:
- Result =
0.5instead of12:00
This is correct internally (time is fraction of a day).
Fix:
- Format as time:
Format → Number → Time
Step 7: Handle Hours and Minutes Separately
If extracting components:
Hours:
=HOUR(A2)
Minutes:
=MINUTE(A2)
Seconds:
=SECOND(A2)
Step 8: Add Time Correctly
Wrong:
=2 + 3
Correct:
=TIME(2,0,0) + TIME(3,0,0)
Or sum range:
=SUM(A2:A10)
Then format properly.
Step 9: Combine Date and Time Properly
Correct:
=DATE(2024,1,1) + TIME(10,30,0)
Avoid mixing text-based date and time.
Step 10: Fix AM/PM Issues
If times are misinterpreted:
Example:
- 02:00 instead of 14:00
Fix:
- Ensure correct format:
Format → Custom → hh:mm AM/PM
Or use 24-hour format.
Common Mistakes
- Treating time as text
- Not formatting results as time
- Ignoring negative time scenarios
- Using arithmetic instead of time functions
- Not handling durations over 24 hours
- Mixing date and time incorrectly
- Misinterpreting decimal outputs
Pro Tips / Better Alternatives
Use TEXT for Display Only
=TEXT(A2, "hh:mm")
Use only for display, not calculations.
Convert Time to Hours
=(B2 - A2) * 24
Gives total hours as a number.
Use MOD for Safe Time Differences
=MOD(B2 - A2, 1)
Handles negative time automatically.
Build Time from Components
=TIME(hours, minutes, seconds)
Example:
=TIME(2,30,0)
Clean Time Data Before Use
=TRIM(A2)
Then convert using VALUE or TIMEVALUE.
Bottom Line
If time calculations aren’t working, fix in this order:
- Ensure time is stored as numeric value
- Convert text using TIMEVALUE
- Use correct subtraction formula
- Handle negative time with IF or MOD
- Format results properly (
[h]:mm:ss) - Avoid mixing text and time values
Most issues come from formatting and data type problems.
Fix those, and your time calculations will work accurately.