Time Duration Calculator and Finder ⏳

Excel Date Time Difference Formulas

Excel date and time difference formulas with examples. Calculate days, hours, minutes, months, years, business days, and more using simple Excel formulas.

Date rule:
Cells must contain real Excel dates, not text.
Recommended format: 01-Jan-2025
Check with: =ISNUMBER(A2)

Click a case to reveal the formula and example.

Days between two dates +
=B2 - A2
AB
1StartDateEndDate
201-Jan-202510-Jan-2025
Result: 9 days
Hours between date and time +
=(B2 - A2) * 24
AB
1StartTimeEndTime
201-Jan-2025 08:0002-Jan-2025 14:00
Result: 30 hours
Minutes between two times +
=(B2 - A2) * 1440
AB
1StartTimeEndTime
201-Jan-2025 09:0001-Jan-2025 12:00
Result: 180 minutes
Years, months, days, hours,
minutes, seconds difference (exact) +
=DATEDIF(A2,B2,"Y") & " years "
& DATEDIF(A2,B2,"YM") & " months "
& DATEDIF(A2,B2,"MD") & " days "
& HOUR(MOD(B2-A2,1)) & " hours "
& MINUTE(MOD(B2-A2,1)) & " minutes "
& SECOND(MOD(B2-A2,1)) & " seconds"
AB
1StartDateEndDate
215-Mar-2020 18:25:1020-Jun-2022 10:35:15
Result: 2 years 3 months 5 days 16 hours 10 minutes 5 seconds
Total months between dates +
=DATEDIF(A2,B2,"M")
AB
1StartDateEndDate
201-Jan-202401-Apr-2025
Result: 15 months
Business days (exclude weekends) +
=NETWORKDAYS(A2,B2)
AB
1StartDateEndDate
201-Jan-202510-Jan-2025
Result: 8 business days
Business days excluding holidays +
=NETWORKDAYS(A2,B2,E2:E3)
ABE
1StartEndHolidays
201-Jan-202510-Jan-202501-Jan-2025
306-Jan-2025
Result: 6 business days
Business hours (simple estimate) +
=NETWORKDAYS(A2,B2) * 8
AB
1StartDateEndDate
201-Jan-202505-Jan-2025
Result: 24 hours
Time difference as text (hh:mm) +
=TEXT(B2-A2,"h:mm")
AB
1StartTimeEndTime
201-Jan-2025 09:3001-Jan-2025 15:00
Result: 5:30
Prevent negative result +
=IF(B2<A2,"Invalid date",B2-A2)
AB
1StartDateEndDate
210-Jan-202501-Jan-2025
Result: Invalid date

Time Calculator Suite

Time Duration Finder is an advanced Time Calculator Suite, free utility designed to handle every type of time calculation. It combines many powerful tools: