Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Chart Axes in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How to create dynamic reference table name in Excel
  • Filter Data Based on Date in Excel
  • Understanding Pivot Tables in Excel

References

  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to use Excel ROW Function
  • Excel Advanced Lookup using Index and Match Functions
  • Multi-criteria lookup and transpose in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation specific characters only
  • Excel Data validation whole percentage only
  • Excel Data validation allow uppercase only
  • Excel Data validation must contain specific text

Add decimal hours to time in Excel

by

It you need to add decimal hours to time in Excel then this tutorials is for you. See example below.

To add a given number of hours to a time, you can add hours divided by 24, or use the TIME function.

Formula

=time+(hours/24)

Explanation

In the example shown, the formula in D5 is:

=B5+(C5/24)

Note: make sure results are formatted as time.

Times in Excel are factional values of 24 hours. One hour of time is 1/24, and 1 minute of time is 1/(24*60) = 1/1440.

Worked Example:   Two ways to sum time over 30 minutes in Excel

As a result, if you have a decimal value for 6 hours, and a time in A1, you can add 6 hours of time to the value in A1 like this:

=A1+(6/24)

With the TIME function

You can also add time values with the TIME function. To add 15 hours to a time in A1, use:

=A1+TIME(6,0,0)

The TIME function saves you from having to remember the formula for converting decimal hours to an Excel time. However, note that the TIME function will “roll over” back to zero when values exceed 24 hours.

Worked Example:   Calculate number of hours between two times in Excel

For example, note how the two approaches return different results for 25 hours:

=TIME(25,0,0) = 0.041667 = 1:00 AM same day (1 hr)
=25/24 = 1.041667 = 1:00 AM next day (25 hrs)

The TIME function returns the equivalent of 1 hour, while 25/24 returns the full value.

Worked Example:   Convert text timestamp into time in Excel

Subtracting hours from time

You may get an error if you try to subtract hours from a time, when the result is negative, because Excel doesn’t allow negative time values.

One way to avoid this problem is to use a formula like this:

=MOD(time-(hours/24),1)

Here MOD function takes care of the negative problem by using the MOD function to “flip” negative values to the required positive value.

 

Post navigation

Previous Post:

Number and Text Filters Examples in Excel

Next Post:

Convert date string to date time in Excel

Leave a Reply Cancel reply

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

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel AND Function
  • Nested IF function example in Excel
  • Excel If, Nested If, And/Or Criteria Examples

Date Time

  • Find Last Day of the Month in Excel
  • How to enter Today’s Date or Static Date and Time in Excel
  • MINUTE function: Description, Usage, Syntax, Examples and Explanation
  • Get date from day number in Excel
  • List holidays between two dates in Excel

Grouping

  • Running count group by n size in Excel
  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Map text to numbers in Excel
  • Group arbitrary text values in Excel

General

  • Automatically fill series of cells in Excel using AutoFill
  • How to calculate total from percentage in Excel
  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Delete Blank Rows at Once in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning