ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Formula > How to Add Seconds, Minutes and Hours to a Time in Excel

How to Add Seconds, Minutes and Hours to a Time in Excel

How to Add Seconds, Minutes and Hours to a Time in Excel
Table of contents :
  • How to add SECONDS to time in Excel?
  • How to add MINUTES to time in Excel?
  • How to add HOURS to time in Excel?
  • How to add HOURS, MINUTES, SECONDS to time in Excel?

Add time in excel

Excel stores date value in integer number and time value in decimal number.

1 day = 24 hours

1 hour = 1/24 = 0.041666667

1 minute = 1/(24*60) = 1/1440 = 0.000694444

1 second = 1/(24*60*60) = 1/86400 = 0.0000115740740740741

To add seconds, minutes, or hours to a time, you can use the Excel functions or using the data above in addition formula.

Read the following article for a more detailed explanation of how Excel stores date and time

  • How does Excel Stores Dates and Times

How to add SECONDS to time in Excel?

No Excel function solution

The formula

=A2+(B2/86400)

The result

Excel add seconds to time

Add the time value with the number 1/86400 and multiply by the number of seconds to be added.

Excel function solution

The formula

=TIME(HOUR(A2),MINUTE(A2),SECOND(A2)+B2)

The result

Excel add seconds to time

There are four excel functions, the HOUR function to extract the hour values, the MINUTE function to extract the minute values, and the SECOND function to extract the second values.

If you want to add n seconds to time then add n in the SECOND function result, then all three values (hour, minute and second) are reassembled using the TIME function to get the new time value.

The results are the same as no excel function solution.

How to add MINUTES to time in Excel?

Simple formula solution

The formula

=A2+(B2/1440)

The result

Excel add minutes to time

Excel function solution

The formula

=TIME(HOUR(A2),MINUTE(A2)+B2,SECOND(A2))

The result

Excel add minutes to time

Like adding seconds to time, but the added minutes placed in the MINUTE function result.

How to add HOURS to time in Excel?

Simple formula solution

The formula

=A2+(B2/24)

The result

Excel add hours to time

The result is the ##### sign for a time that passes midnight when subtracted. For a time that passes midnight when added Excel will show the correct result, even though it has increased by 1 day.

For the subtraction formula if it passes midnight return a negative number. Excel cannot show the result because the correct result should be 1 minus the negative number.

For this reason, formula correction is needed, if the formula result is negative then add with number 1; otherwise, no correction needed.

The modified formula

=IF(A2+(B2/24)<0,1+(A2+(B2/24)),A2+(B2/24))

The result

Excel add hours to time

No more ##### signs

The Other Alternative

You can use MOD function to get the simpler formula but the same result.

The formula

=MOD(A2+(B2/24),1)

The result

Excel add hours to time

the MOD function change the negative number to the positive number, equivalent to formula =1+negative-value.

Excel function solution

The Formula

=TIME(HOUR(A2)+B2,MINUTE(A2),SECOND(A2))

The result

Excel add hours to time

The result is a #NUM! Error, for time value pass the midnight when subtracted.

The solution is the same as the previous formula; you should check which formula returns a negative number (passes the midnight when subtracted). If there is a negative number, you should add correction by adding 24; otherwise, no correction needed.

The modified formula

=TIME(IF(HOUR(A2)+B2<0,24+HOUR(A2)+B2,HOUR(A2)+B2),MINUTE(A2),SECOND(A2))

The result

Excel add hours to time

The solution for negative time value is the same for hours, minutes or seconds.

No error for minutes and second in the example above because the subtraction result is a positive number (does not pass the midnight)

How to add HOURS, MINUTES, SECONDS to time in Excel?

What is the formula for adding hours, minutes and seconds to a time? Can you use a simple formula or must use an excel function?

Simple formula solution

The formula

=A2+(B2/24)+(C2/1440)+(D2/86400)

The result

Excel add hours, minutes, seconds to time

The ##### sign appears for negative time value. For this reason, you need to modify the formula to eliminate the errors.

The modified formula

=A2+(B2/24)+(C2/1440)+(D2/86400)+1

The result

Excel add hours, minutes, seconds to time

The difference with the previous formula is the addition of +1. Why +1 solve the problem?

The problems only appear for negative time value; the solution is to add +1. Whereas +1 for positive time value keep showing the correct result, although the date changes (increases by 1).

The data above does not include the date values; then you can use +1 for positive or negative time value. The result is a simpler formula.

You cannot use the above formula if you include the date value, because the results will be different.

If you include the date, no need for formula correction because the result is the correct time and the correct date.

Excel add hours, minutes, seconds to time

An error will occur if the returning date is smaller than January 1, 1900.

Excel function solution

The formula

=TIME(HOUR(A2)+B2, MINUTE(A2)+C2, SECOND(A2)+D2)

The result

Excel add hours, minutes, seconds to time

#NUM! Error appears for negative time value.

The modified formula

=TIME(HOUR(A2)+B2+24, MINUTE(A2)+C2, SECOND(A2)+D2)

The result

Excel add hours, minutes, seconds to time

No errors found

Related Function

Function used in this article
  • Excel TIME Function
  • Excel HOUR Function
  • Excel MINUTE Function
  • Excel SECOND Function
  • Excel MOD Function
Usefull links
  • Microsoft Excel Add or Subtract a time documentation
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

How to Determine If a Number is Even or Odd
What are Odd and Even Numbers? Even numbers definition Even …

How to Determine If a Number is Even or Odd

Calculate Number of Days, Weeks, Months and Years between Two Dates
Calculate Number of Days Between Two Dates Excel has a …

Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel

Different between SUMIF and SUMIFS
SUMIFS vs. SUMIF Here is a table of differences between …

Difference between SUMIF and SUMIFS

How to Merge Cells in Excel
There are several ways to merge cells in excel, using …

How to Merge Cells in Excel

How to Do Division in Excel
How to divide in Excel? For example, there is data …

How to Do Division in Excel

Tags:Add Minutes to Time in Excel Add Time in Excel Division Formula Excel Add Hours to Date Excel Add Hours to Time Excel Add Minutes to Time HOUR Function How to Add Minutes in Excel How to Add Minutes to Time in Excel How to Add Time in Excel Minute Function MOD Function Multiplication Formula SECOND Function Subtraction Formula TIME Function

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh