Pinterest Pixel

Convert Time to Decimal in Excel – Top 3 Methods

John Michaloudis
Excel stores time as a fraction of the day.
Time is generally displayed in HH:MM:SS format, but you may need to display it in decimal format.

In this article, you will learn how to convert time to decimal in Excel.

Method 1 – Multiplication

Excel stores time as numbers, and a 24-hour day is equal to 1. To convert time to a number of hours, multiply the time by 24.

Time to Decimal

 

Method 2 – HOUR, MINUTE and SECOND

One straightforward way to convert time to decimal in Excel is by using the HOUR, MINUTE, and SECOND functions. These functions are used to extract the hour, minute, and second components from a given time, respectively.

Suppose you have time displayed in the hh:mm:ss format in column A and you want to convert it into decimal format.

Time to decimal

The general syntax to convert time to decimal is –

=HOUR(serial_number)+MINUTE(serial_number)/60+SECOND(serial_number)/3600

  • HOUR(serial_number) – This extracts the hour component from the time value.
  • MINUTE(serial_number)/60 – This extracts the minute component from the time value, and divides it by 60(the number of minutes in an hour) to convert it to hours.
  • SECOND(serial_number)/3600 – This extracts the second component from the time value and divides it by 3600(the number of seconds in an hour) to convert it to hours.

By combining these three parts, the entire formula calculates the decimal representation of a given time value. Follow the steps below to achieve this result –

STEP 1: Enter the hour function.

Time to decimal

STEP 2: Select the cell containing the time. Here, it is A2.

Time to decimal

STEP 3: Enter the addition symbol (+).

Time to decimal

STEP 4: Enter the minute function.

Time to decimal

STEP 5: Select the cell containing the time and divide the time by 60 to convert the minute component to an hour.

Time to decimal

STEP 6: Enter the addition symbol (+).

Time to decimal

STEP 7: Enter the second function.

Time to decimal

STEP 8: Select the cell containing the time and divide the time by 3600 to convert the second component to an hour.

Time to decimal

The time from the hh:mm:ss format can be converted into decimal format using this method.

Time to decimal

 

Method 3 – CONVERT

This function is exclusively available for Excel 365 users. It can be used to convert a number from one measurement system to another. The syntax is –

CONVERT(number,from_unit,to_unit)

  • Number – It is the reference value.
  • From_unit – It is the units of the original value.
  • To_unit – It is the units for the result.

Follow the steps below to achieve this result –

STEP 1: Enter the CONVERT function.

Time to decimal

STEP 2: Enter the first argument i.e. number. Here, it is the cell containing time in hh:mm:ss format (A2).

Time to decimal

STEP 3: Enter the second argument i.e. from_unit. Here, it is “day”.

Time to decimal

STEP 4: Enter the third argument i.e. to_unit. Here, it is “hr”.

Time to decimal

The time value will easily be converted to decimal format using the CONVERT function.

Time to decimal

Tips and Tricks

  • Format the result cells as Number or General to display decimal values correctly.
  • Use 24, 1,440, or 86,400 as the multiplier for hours, minutes, and seconds, respectively.
  • Ensure your time values are valid Excel times and not stored as text.
  • Use the ROUND function to limit the number of decimal places when needed.
  • If a calculation crosses midnight, add one day to the end time before converting it to a decimal.

 

FAQs

1. Why does Excel store time as a decimal?

Excel stores time as a fraction of one day.

2. What is the easiest way to convert time to decimal hours?

Multiply the time value by 24.

3. Can I use functions to convert time to a decimal?

Yes. Use the HOUR, MINUTE, and SECOND functions together.

4. Does the CONVERT function work in all Excel versions?

No. It is available in Excel 365.

5. Why is my result still showing as time?

Change the cell format from Time to Number.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  The Ultimate Guide to Random Boy Name Generator in Excel

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...