ThisCalculator

Everyday

Excel Add Hours Minutes Seconds to Date

Updated · Standard formula, shown below

New date/time 45,000.604167
Start date/time
45000.5
You entered
Hours to add
2 hr
You entered
Minutes to add
30 min
You entered
Seconds to add
0 sec
You entered

Excel Add Hours Minutes Seconds to Date

To add hours, minutes, and seconds to a date in Excel, use the TIME function in a simple formula: =A1 + TIME(hours, minutes, seconds). For example, if cell A1 contains a date and time, =A1 + TIME(2, 30, 0) adds 2 hours and 30 minutes. This works because Excel stores dates as serial numbers and times as fractional parts of a day.

Formula

The underlying math is straightforward: Excel treats 1 day as the number 1, so 1 hour = 1/24, 1 minute = 1/1440, and 1 second = 1/86400. The formula is:

New date/time = Start date/time + (Hours / 24) + (Minutes / 1440) + (Seconds / 86400)

  • Start date/time – the cell containing the original date and time (Excel serial number).
  • Hours – whole or decimal hours to add (can be negative to subtract).
  • Minutes – whole or decimal minutes to add.
  • Seconds – whole or decimal seconds to add.

The result is a new serial number that Excel displays as a date and time, provided the cell is formatted correctly.

Worked Example

Using the default values from the calculator above: start date/time = 45000.5 (which is March 15, 2023, 12:00 PM), add 2 hours, 30 minutes, 0 seconds.

  1. Convert hours to days: 2 / 24 = 0.0833333
  2. Convert minutes to days: 30 / 1440 = 0.0208333
  3. Convert seconds to days: 0 / 86400 = 0
  4. Sum the fractions: 0.0833333 + 0.0208333 + 0 = 0.1041667
  5. Add to start: 45000.5 + 0.1041667 = 45000.6041667

45000.6041667 corresponds to March 15, 2023, 2:30 PM. The calculator shows 45000.604167 (rounded to 6 decimals), which is the same value.

How Excel Stores Dates and Times

Excel’s date system is based on a serial number. For Windows, day 1 is January 1, 1900 (with a known leap-year bug that Excel keeps for compatibility). For Mac, the default is January 1, 1904, though modern versions can switch. The integer part of the serial number represents the date, and the decimal part represents the time of day. For instance, 0.5 is noon, 0.25 is 6:00 AM, and 0.75 is 6:00 PM. This is why adding a fraction of a day works perfectly: you are just adding to the decimal portion.

When you type a date like “2023-03-15� into a cell, Excel converts it to a serial number behind the scenes. When you add a time value, you are adding a fraction of 24 hours. The TIME function is simply a convenient way to build that fraction without doing the division yourself.

Using the TIME Function vs. Direct Arithmetic

The TIME function is the most readable method: =A1 + TIME(2, 30, 0). It takes three arguments: hours, minutes, seconds. You can use cell references: =A1 + TIME(B1, C1, D1). If any argument exceeds its normal range (e.g., 90 minutes), TIME rolls over correctly – 90 minutes becomes 1 hour and 30 minutes. This is helpful when you are adding durations that might exceed 24 hours.

Direct arithmetic is more flexible if you are adding a decimal number of hours, like 2.5 hours. You would write =A1 + 2.5/24. For minutes, =A1 + 150/1440. For seconds, =A1 + 3600/86400. The TIME function cannot handle decimal hours directly (it truncates), so for fractional hours, direct arithmetic is necessary.

Another option is to use the TIMEVALUE function if you have a text string like “2:30:00�: =A1 + TIMEVALUE("2:30:00"). This converts the text to a time fraction. But for most cases, TIME is simpler.

Common Mistakes and How to Avoid Them

  • Forgetting to format the result cell as a date/time. If you see a number like 45000.604, the cell is formatted as General. Right-click the cell, choose Format Cells, then select a date/time format that includes hours and minutes.
  • Using TIME with decimal hours. TIME(2.5, 0, 0) does not give 2.5 hours; it truncates to 2 hours. Use direct arithmetic for decimal hours.
  • Adding times that exceed 24 hours. If you add 30 hours, Excel will roll over to the next day and display the date correctly only if the cell format includes the date. If you only see the time, the day is hidden.
  • Subtracting times. To subtract, use a negative value in TIME? Actually, TIME does not accept negative arguments. Use =A1 - TIME(1, 0, 0) for subtraction, or use direct arithmetic with negative numbers.
  • Using the wrong date system. If you share files between Windows and Mac, the 1904 date system can shift dates by 4 years. Check File > Options > Advanced > “Use 1904 date system� to ensure consistency.

Formatting the Result Correctly

After adding time, the result may appear as a decimal. To display it as a date and time, select the cell and press Ctrl+1 (Cmd+1 on Mac). In the Format Cells dialog, go to the Number tab, select “Date� or “Custom�, and choose a format like yyyy-mm-dd hh:mm:ss. If you want to show milliseconds, you can use a custom format like hh:mm:ss.000 – though Excel’s precision is limited to about 1/1000 of a second.

If the result is meant to be a duration (e.g., total hours worked), you might want to use the format [h]:mm:ss. The square brackets allow hours to exceed 24, so 30 hours shows as 30:00:00 instead of rolling over to 06:00:00 the next day. This is a common need when summing time logs.

Adding Time to a Date Only (No Time)

If your cell contains only a date (e.g., 2023-03-15), its serial number has no decimal part (midnight). Adding TIME(2, 0, 0) gives 2:00 AM on that same date. If you want to add time to a date that is stored as text, you must first convert it to a real date using DATEVALUE or by using the DATE function. For example, if A1 contains “2023-03-15� as text, use =DATEVALUE(A1) + TIME(2,0,0). Otherwise, Excel will treat the text as 0 and the result will be just the time.

Another common scenario is adding a time value that is already in a cell (like 02:30:00). You can simply do =A1 + B1 if B1 contains a time. Excel treats the time as a fraction of a day automatically. This is the simplest approach when you have a time value in another cell.

Frequently Asked Questions

How do I add hours and minutes to a date in Excel without using a formula?

You can use Paste Special. Put the time fraction (e.g., 0.1041667 for 2.5 hours) in a cell, copy it, select the date cells, right-click > Paste Special > Add. This adds the value to each cell without formulas. But it permanently changes the values, so it’s better for one-off adjustments.

Can I add a time duration that exceeds 24 hours?

Yes. Excel handles it automatically. For example, =A1 + TIME(30, 0, 0) adds 30 hours. The result will show the correct date and time if the cell format includes the date. If you only want the total hours displayed, use the custom format [h]:mm:ss.

Why does my result show a number like 45000.604 instead of a date?

That means the cell is formatted as General or Number. Select the cell, press Ctrl+1, and choose a date/time format. The underlying value is correct; only the display is wrong.

How do I subtract hours, minutes, and seconds from a date?

Use a negative time in the TIME function? Actually, TIME does not accept negative numbers. Instead, use =A1 - TIME(2, 30, 0) for subtraction, or use direct arithmetic: =A1 - 2/24 - 30/1440. Both work.

What if I have hours, minutes, and seconds in separate cells?

Use cell references in the TIME function: =A1 + TIME(B1, C1, D1). If the values might be text, convert them to numbers first, or use -- to coerce: =A1 + TIME(--B1, --C1, --D1).

Does the TIME function work with negative hours?

No, TIME does not accept negative arguments. For subtracting, use =A1 - TIME(1, 0, 0) or direct arithmetic with negative numbers.

Related

Formula used
in t | Start date/time | - | 45000.5 | 0
in h | Hours to add | hr | 2 | 0
in m | Minutes to add | min | 30 | 0
in s | Seconds to add | sec | 0 | 0
out result | New date/time | - | t + h/24 + m/1440 + s/86400 | 6

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.