By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: How to Calculate Time & Hours in Excel (Including Formulas)
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > How to Calculate Time & Hours in Excel (Including Formulas)
Computing

How to Calculate Time & Hours in Excel (Including Formulas)

News Room
Last updated: 2025/03/28 at 7:24 AM
News Room Published 28 March 2025
Share
SHARE

If you’ve been relying on Excel to manage your projects and need help with time calculations, you’re not alone. Figuring out the elapsed time of a project or task is crucial for team leads that need to know what work should be prioritized and how to properly allocate resources.

Simply put, time values are tricky in Excel—especially when calculating time difference, hours worked, or the difference between two employees.

Luckily for you, we’ve done all the hard work to help format cells and calculate elapsed time in Excel faster. Let’s get confident about using Excel for project time tracking and discover the various ways of figuring time.

How to Calculate Time in Excel (A Complete Tutorial and Helpful Formulas)

Summarize this article with AI Brain not only saves you precious time by instantly summarizing articles, it also leverages AI to connect your tasks, docs, people, and more, streamlining your workflow like never before.

⏰ 60-Second Summary

  • Excel can calculate elapsed time for project tracking, helping team leads prioritize work and allocate resources effectively
  • Time in Excel is stored as decimal numbers formatted to look like time, making calculations complex but flexible
  • Key time calculations
    • Add Time: For summing task durations (< or > 24 hours)
    • Subtract Time: For finding the time difference (< or > 24 hours)
  • Time calculation formulas: Examples include:
    • =B2-A2 for time difference
    • =(B2-A2)*24 for hours
  • Custom formats like h:mm or [h]:mm;@ adjust results for durations over 24 hours
  • Use the “Custom” format in cells to display time properly and avoid negative values
  • Use formulas like =SUM(B2:B3) for total durations and adjust formats for results over 24 hours
  • Excel doesn’t support real-time updates or intuitive task tracking
  • ’s Table View and time functions simplify task tracking and calculations with drag-and-drop ease, sharable tables, and date/time fields. You can also use ’s Time Analysis Template to streamline time tracking
  • wins over Excel as an all-in-one tool for time tracking, task organization, and project management, offering a smoother experience
Summarize this article with AI Brain not only saves you precious time by instantly summarizing articles, it also leverages AI to connect your tasks, docs, people, and more, streamlining your workflow like never before.

Types of Time Calculations in Excel

There isn’t a single formula or format for calculating time in Excel. It depends on your dataset and the goal you want to achieve. Most use a custom format (number over text function) to understand time and date values or the time difference value.

But there are two types of calculations to get you started, which include:

  • Add time: If you need to obtain the sum of two time values to get a total
    • Add up to less than 24 hours: When you need to know how many hours and minutes it’ll take to complete two simple tasks
    • Add up to more than 24 hours: When you need to add the estimated or actual elapsed time of multiple slow, complex tasks
  • Subtract time: If you need to get the total time between a start and end times
    • Subtract times whose difference is less than 24 hours: When you need to figure out the hours elapsed since a team member started to execute a simple task
    • Subtract times whose difference is more than 24 hours: When you need to know the hours that have gone by since your project started
Summarize this article with AI Brain not only saves you precious time by instantly summarizing articles, it also leverages AI to connect your tasks, docs, people, and more, streamlining your workflow like never before.

How to Calculate Time & Hours in Excel

Let’s go through a few formulas for time calculations in Excel so you get down to the exact hours, minutes, and seconds in your custom time format.

Time Difference in Excel

Before we teach you how to calculate time in Excel, you must understand what time values are in the first place. Time values are the decimal number to which Excel applied a time format to make them look like times (i.e., the hours, minutes, and seconds).

Because Excel times are numbers, you can add and subtract them. And the difference between a start time and an end time is called “time difference” or “elapsed time.”

These are the steps to subtract times whose difference is less than 24 hours:

1. Enter the start date and time in cell A2 and hit Enter. Don’t forget to write “AM” or “PM”
2. Enter the end time in cell B2 and hit Enter
3. Enter the formula =B2-A2 in cell C2 and hit Enter.

Same Day Time Format in Excel example: how to calculate time in Excel
An example of subtracting time on the same day in Excel

WARNING
As you can tell from the figure, this formula doesn’t work for times that belong to different days. This example shows the time difference between two time values within a 24-hour time period.

4. Right-click on C2 and select Format Cells.

example of formatting Cells for time values in excel: how to calculate time in Excelexample of formatting Cells for time values in excel: how to calculate time in Excel
The custom value can be set up in various date format options

5. Choose the Custom category and type “h:mm”

SIDE NOTE
You might wish to obtain the time difference expressed in hours or hours, minutes, and seconds. If so, type “h” or “h:mm:ss,” respectively. This will help you avoid negative time values.

6. Click OK to see the total change to a format describing only the number of hours and minutes in the elapsed time between A2 and B2.

Example format showing the number of hours and minutesExample format showing the number of hours and minutes
Example format showing the hours and minutes

Check out our detailed blog to find a list of time management strategies you can use right away!

Date and time in Excel

In the previous section, you learned how to calculate hours in Excel. But the formula you learned only applied to time differences of less than 24 hours.

If you need to subtract times whose difference is more than 24 hours, you need to work with dates besides times. Do it like this (format cells dialog box):

1. Enter the start time in cell A2 and hit Enter.
2. Enter the end time in cell B2 and hit Enter.
3. Right-click on A2 and select Format Cells.
4. Choose the Custom category and type “m/d/yyyy h:mm AM/PM.”
5. Click OK to see A2 change to a format starting with “1/0/1900” and adjust the date.
6. Use the Format Painter to copy the formatting of A2 to B2 and adjust the date.
7. Enter the formula =(B2-A2)*24 in cell C2 and hit Enter to see the total change to a format describing the number of hours in the time elapsed between A2 and B2.

Total Change to subtract times example in excel: how to calculate time in ExcelTotal Change to subtract times example in excel: how to calculate time in Excel
Example of the total change to subtract times in Excel

WARNING
You must apply the “Number” format to C2 to get the correct value in the above formula.

Sum time in Excel

Suppose you want to sum up the time difference between your team members working on multiple project tasks. If those durations add up to less than 24 hours, follow these steps:

1. Enter one duration in cell B2 (with the format h:mm) and hit Enter.
2. Enter the other duration in cell B3 and hit Enter.
3. Enter the formula =B2+B3 in cell B4 and hit Enter.

Example of combining times that equal less than 24 hoursExample of combining times that equal less than 24 hours
Example of combining times that equal less than 24 hours in Excel formulas (Column B)

PRO TIP
If you prefer clicking a single button instead of entering a formula, you may position the cursor in B4 and hit the Σ (or AutoSum) button in the Home tab. The button will apply the formula =SUM(B2:B3) to the cell in the above example.

If the total duration of your project tasks adds up to more than 24 hours, follow these steps instead:

1. Enter one duration in cell B2 (with the format h:mm) and hit Enter. (Warning: Beware that the maximum duration is 23 hours and 59 minutes)
2. Enter the other duration in cell B3 and hit Enter.
3. Enter the formula =B2+B3 in cell B4 and hit Enter.
4. Right-click on B4 and select Format Cells.
5. Choose the Custom category and type “[h]:mm;@.”
6. Click OK to see B4 correctly displaying the sum of the times in B2 and B3.

Example of combining times that equal more than 24 hoursExample of combining times that equal more than 24 hours
Example of combining values that equals more than 24 hours (Column B)

If you’d like to know more about Excel project management, our blog is the perfect place to start!

More Excel Resources:

Summarize this article with AI Brain not only saves you precious time by instantly summarizing articles, it also leverages AI to connect your tasks, docs, people, and more, streamlining your workflow like never before.

The Complete List of Formulas for Calculating Time in Excel

It pays to know the formulas when you’re calculating time difference in Excel. To get your time difference and value set up correctly, we’ve provided a list of formulas to make your calculations easier.

Formula Description
=B2-A2 Difference between the two time values in cells A2 and B2
=(B2-A2)*24 Hours between the value in cells A2 and B2 (24 being the number of hours in a day)
 
Warning: If the difference is 24+ hours, you must apply the “Custom” format with the type “m/d/yyyy h:mm AM/PM” to A2 and B2. You also must apply the “Number” format to the cell containing the time difference formula.
=TIMEVALUE(“8:02 PM”)-TIMEVALUE(“9:15 AM”) Warning: The difference must be less than 24 hours.
=TEXT(B2-A2,”h”) Hours between the values in cells A2 and B2
 
Warning: You must apply the “Custom” format with the type “h” to A2 and B2. Also, the value in B2 cannot be less than A2 and the difference must be less than 24 hours to avoid a negative value. And the TEXT function returns a textual value.
=TEXT(B2-A2,”h:mm”) Minutes and hours between the time values in cells A2 and B2.
 
Warning: You must apply the “Custom” format with the type “h:mm” to A2 and B2. Also, the value in B2 cannot be less than A2 and the difference must be less than 24 hours.
=TEXT(B2-A2,”h:mm:ss”) Hours, minutes, and seconds between the time values in cells A2 and B2.
 
Warning: You must apply the “Custom” format with the type “h:mm:ss” to A2 and B2. And the value in B2 cannot be less than A2 and the difference must be less than 24 hours.
=INT((B2-A2)*24) Number of complete hours between the time values in cells A2 and B2 (24 being hours in a day).
 
Warning: If the difference is 24+ hours, you must apply the “Custom” format with the type “m/d/yyyy h:mm AM/PM” to A2 and B2. And you must apply the “Number” format to the cell containing the time difference formula.
=(B2-A2)*1440 Minutes between the time values in cells A2 and B2 (1440 being minutes in a day).

Warning: If the difference is 24+ hours, you must apply the “Custom” format with the type “m/d/yyyy h:mm AM/PM” to A2 and B2. And you must apply the “Number” format to the cell containing the time difference formula.

=(B2-A2)*86400 Seconds between the time values in cells A2 and B2 (86400 being the seconds in a day).
 
Warning: If the difference is 24+ hours, you must apply the “Custom” format with the type “m/d/yyyy h:mm AM/PM” to A2 and B2. And you must apply the “Number” format to the cell containing the time difference formula.
=HOUR(B2-A2) Hours between the time values in cells A2 and B2.

Warning: The value in B2 cannot be less than the value in A2 and the difference must be less than 24 hours. Also, the HOUR function returns a numeric value.

=MINUTE(B2-A2) Minutes between the time values in cells A2 and B2.
 
Warning: The value in B2 cannot be less than the value in A2 and the difference must be less than 60 minutes. Also, the MINUTE function returns a numeric value.
=SECOND(B2-A2) Seconds between the time values in cells A2 and B2.
 
Warning: The value in B2 cannot be less than the value in A2 and the difference must be less than 60 seconds. Also, the SECOND function returns a numeric value.
=NOW()-A2 Time elapsed between the date and time in cell A2 and the current date and time.
 
Warning: If the elapsed time is 24+ hours, you must apply the “Custom” format with the type “d “days” h:mm:ss” to the cell containing the time difference formula. Also, Excel doesn’t update the elapsed time in real-time. To do that, you must hit Shift+F9.
=TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW()))-A2 Time elapsed between the value in cell A2 and the current date and time.
 
Warning: Excel doesn’t update the elapsed time in real-time. To do that, you must hit Shift+F9.
=INT(B2-A2)&” days, “&HOUR(B2-A2)&” hours, “&MINUTE(B2-A2)&” minutes, and “&SECOND(B2-A2)&” seconds” Time elapsed between the date and time or time values in cells A2 and B2, expressed in the format “dd days, hh hours, mm minutes, and ss seconds.”
 
Warning: This formula returns a textual value. If you need the result to be a value, use the formula =B2-A2 and apply the “Custom” format with the type “d “days,” h “hours,” m “minutes, and” s “seconds”” to the cell containing the time difference formula.
=IF(INT(B2-A2)>0,INT(B2-A2)&” days,”,””)&IF(HOUR(B2-A2)>0,HOUR(B2-A2)&” hours,”,””)&IF(MINUTE(B2-A2)>0,MINUTE(B2-A2)&” minutes, and “,””)&IF(SECOND(B2-A2)>0,SECOND(B2-A2)&” seconds”,””) Time elapsed between the date and time or values in cells A2 and B2, expressed in the format “dd days, hh hours, mm minutes, and ss seconds” with zero values hidden.
 
Warning: This formula returns a textual value. If you need the result to be a value, use the formula =B2-A2 and apply the “Custom” format with the type “d “days,” h “hours,” m “minutes, and” s “seconds”” to the cell containing the time difference formula.
=A2+TIME(1,0,0) Value in cell A2 plus one hour.
 
Warning: This formula only allows adding less than 24 hours to a value.
=A2+(30/24) Value in cell A2 plus 30 hours (24 being hours in a day).
 
Warning: This formula allows adding any number of hours to a value.
=A2-TIME(1,0,0) Time value in cell A2 minus one hour.
 
Warning: This formula only allows subtracting less than 24 hours from a value.
=A2-(30/24) Time value in cell A2 minus 30 hours.
 
Warning: This formula allows subtracting any number of hours from a value.
=A2+TIME(0,1,0) Time value in cell A2 plus one minute.
 
Warning: This formula only allows adding less than 60 minutes to a value.
=A2+(100/1440) Time value in cell A2 plus 100 minutes (1440 being minutes in a day).
 
Warning: This formula allows adding any number of minutes to a value.
=A2-TIME(0,1,0) Time value in cell A2 minus one minute.
 
Warning: This formula only allows subtracting less than 60 minutes from a value.
=A2-(100/1440) Time value in cell A2 minus 100 minutes.
 
Warning: This formula allows subtracting any number of minutes from a value.
=A2+TIME(0,0,1) Time value in cell A2 plus one second.
 
Warning: This formula only allows adding less than 60 seconds to a value.
=A2+(100/86400) Time value in cell A2 plus 100 seconds (86400 being seconds in a day).

Warning: This formula allows adding any number of seconds to a value.

=A2-TIME(0,0,1) Time value in cell A2 minus one second.
 
Warning: This formula only allows subtracting less than 60 seconds from a value.
=A2-(100/86400) Time value in cell A2 minus 100 seconds.
 
Warning: This formula allows subtracting any number of seconds from a value.
=A2+B2

=SUM(A2:B2)

Total hours, hours and minutes, or hours, minutes, and seconds in the values from cells A2 and B2, depending on the format you applied to those cells.
 
Warning: If the total adds up to more than 24 hours, you must apply the “Custom” format with the type “[h]:mm;@” to the cell containing the SUM formula.
Summarize this article with AI Brain not only saves you precious time by instantly summarizing articles, it also leverages AI to connect your tasks, docs, people, and more, streamlining your workflow like never before.

An Easier Alternative to Calculating Time in Excel

Although the formulas in this article work, there’s a better way than Excel to calculate time—!

Sure, spreadsheets are great for managing data, but what about your day-to-day tasks? And how do you communicate with your team to show these times in a simple and clear way?

 Table View
Arrange all of your tasks on a grid alongside their key details, including status, due date, assignees, etc. with Table view in and analyze them using sort, filter, and more

’s Table view keeps track of all your tasks, including assignees, status, and due dates, with ease. Plus, the Table view lets you quickly check on the progress of each project task.

Use ’s date and time functions to easily make calculations for time worked.

But that’s not all—you can copy and paste your table into other software, pin specific columns, auto-size your columns, and even share your tables through a unique link.

This simple interface makes it a breeze to drag and drop rows and columns to quickly change your view.

drag and drop tasks on a  tabledrag and drop tasks on a  table
Drag and drop tasks on a Table View for simple organization

is an all-in-one management software for time tracking and figuring time estimates while supporting dates and times fields, so you can finally break up with Excel for your project management needs.

 Time Analysis Template
Track and evaluate idle time using the Time Analysis Template

If you don’t want to start from scratch, try ’s Time Analysis Template to get started! This template allows you to monitor project timelines, track individual task times, and analyze time spent on each task or project for comprehensive oversight. By providing a clear and comprehensive view of time utilization, it helps drive productivity and ensures efficient resource allocation. Say goodbye to complicated Excel formulas and start optimizing your team’s time management with !

Validate data in multiple view options—List, Board, Grid, Doc, Map, and Form with the  Spreadsheet Template
Validate data in multiple view options—List, Board, Grid, Doc, Map, and Form with the Spreadsheet Template

Want to retain your spreadsheets in Excel or Google Sheets, but have the ability to do more faster with your data? Try the Spreadsheet Template by . It helps you:

  • Organize spreadsheets into one centralized system
  • Track changes over time and collaborate with teammates
  • Access and update your data from anywhere in the world with ease
  • Integrate data with other tools such as Chat and Docs

Don’t believe us? Try today and make spreadsheet chaos a thing of the past!

Everything you need to stay organized and get work done.

 product image product image

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Confluent Cloud Streamlines Real-Time AI with New Flink Capabilities
Next Article We Mapped DOGE’s Silicon Valley and Corporate Connections
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

iPhone 'Flip': The Apple Foldable Is Still Rumored To Come in 2026
News
Eero’s speedy Pro 6E mesh system is on sale with a gift card for $200 off
News
At Chile’s Vera Rubin Observatory, Earth’s Largest Camera Surveys the Sky
Software
Sabi cuts staff as it narrows its focus to minerals trade |
Computing

You Might also Like

Computing

Sabi cuts staff as it narrows its focus to minerals trade |

3 Min Read
Computing

How We Shifted from Content Creation to Content Production With |

9 Min Read
Computing

Decoding the Global Healthcare Gap: What GCC Markets Are Getting Right | HackerNoon

5 Min Read
Computing

New Android Malware Surge Hits Devices via Overlays, Virtualization Fraud and NFC Theft

13 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?