How to calculate time in Excel: Add and subtract time
Excel can calculate the amount of time by adding / subtracting method to give you the result of the amount of time in minutes, hours, days, and months. The following software tips will guide you the most basic formulas.
Calculate hours by addition / subtraction method
Add two or more time periods
The problem is that you have time to complete two steps of work, and you want to know how many hours it will take, how many minutes to complete the whole job. So you will do the following:
For example: You have task A and task B with the time to complete each step of work as shown in the table below.
(1) Use the Sum function to add two periods.
You have total task time.
(2) Highlight the result cell.
(3) Select the Home tab.
(4) In Format Number, click the arrow in the lower right corner.
(5) The Format Cells windowappears, select Custom .
(6) In the Type box, select the line [h]: mm: ss => OK.
=> The results appear after you click OK .
Subtract time
For example: You have a timeline at the beginning and end of a job, and now your task is to calculate the time it takes to finish that job, as shown in the following table.
(1) Use calculation = End time - Start time to calculate the total task time.
Mission B takes 1 day longer than task A, however, the results are now the same. That means your mission is not over yet. The next step you follow is the same as the case of adding two periods of time that the Software Tips showed you above.
(2) Highlight the result cell.
(3) Select the Home tab .
(4) In Format Number , click the arrow in the lower right corner.
(5) The Format Cells windowappears, select Custom .
(6) In the Type box, find the line [h]: mm: ss .
=> The results will show the number of hours, minutes and seconds between the two time points.
Calculate the time distance with the Datedif function
Function syntax: = DATEDIF (Start_date, End_date, Unit)
Inside:
- DATEDIF is the name of the function.
- Start_date is the start date.
- End_date is the end date.
- Unit is the type of information you want to return.
+ "Y": is the number of years completed in the period.
+ "M": the number of months completed in the period.
+ "D": is the number of days completed in the period.
+ "MD": the difference between dates starting and ending, ignoring the difference of months and years.
+ "YM": the difference between months from start and end date, ignoring the difference of day and year of day.
+ "YD": the difference between dates starting and ending, ignoring the difference in years.
You can refer to the following example to better understand the above formula.
Above software tips have shown you how to calculate the time, add / subtract the easiest time. Depending on the characteristics of the data and the report, you can choose the appropriate calculation.
Good luck!
You should read it
- Date time functions in Excel
- How to use subtraction in Excel
- How to Subtract in Excel
- How to calculate the number of days in Excel
- How to round time to 30 minutes or 15 minutes in Excel
- EDATE function - Add and subtract months to a specified date in Excel
- How to arrange incremental dates in Excel
- The easiest way to calculate the percentage (%)
May be interested
- SUM function in Excel: How to use SUM to calculate totals in Excel - SUM function in Excelthe sum function in excel is quite commonly used. below are details on how to calculate the sum function and related issues in microsoft excel.
- Calculation of percentages in Excelcalculating percentages in excel is a basic calculation, with a very simple and quick calculation when you don't need to enter any functions.
- How to use the SUM function to calculate totals in Excelsum is a popular and very useful excel function, and is also a basic arithmetic function. as its name suggests, the sum function is used to calculate totals in excel. and the parameters can be single parameters or ranges of cells. in this article, tipsmake.com will guide you to use the sum function to calculate the sum in excel, the common errors when calculating sum by sum and how to fix it.
- How to calculate percentage, format percentage in Excelwant to calculate percentages in excel? the following article from tipsmake will help you do it quickly. you just need to remember the formula and follow a few simple steps.
- How to use the kernel function (PRODUCT function) in Excelin excel, product helps users to calculate product values, multiply arguments together, and return their results correctly.
- How to calculate the number of days between two time points extremely quickly using Excelcalculating the number of days between two dates in excel is not difficult. here is a super fast way to calculate the number of days between two dates in excel that you cannot ignore.
- How to use DSUM function in Excelthe dsum function on excel is used to calculate the conditional sum in a field, or column in the data list.
- How to calculate totals in Excelhow to calculate totals in excel. when it comes to summarizing in excel, you often think of using the sum function to sum the data in excel. but there are many cases where a simple data area, just a column or a row of data, you can use fish
- How to calculate the average in Excelthe following article guides you in detail how to calculate the average in excel. there are 2 ways to calculate the average value: - calculate the average value according to the usual calculation formula. - calculate the average value using the average function.
- Date time functions in Excelexcel supports you to process and calculate quickly with the functions that excel provides such as calculation functions, date functions ... one of them is the function of time to help you handle the prices. time value: hour, minute, second conveniently