• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Excel Tutorials by Y. Acosta

Excel Tutorials + Tips

  • Excel Tutorials
  • Etsy Store
  • Other Resources
  • About Me
    • About Me
    • Contact Me
    • FREE Printable List of Top Excel Keyboard Shortcuts
  • FREE pdf of Top Excel Shortcuts!

Convert Time to a Number in Excel – Tutorial (with video)

❤ Support Free Excel Training by Sharing -

We may be compensated for your purchase of any of the products featured on this page – it helps us keep the lights on :)

Depending on what you’re calculating, you may need to know how to convert a time format to a number in Excel.

This will come in handy if you need to calculate total time, for example.

And doing so is all about knowing the right math!

What to Know About Time Values in Excel

Excel sees all values in terms of decimal numbers. This includes those values that have been formatted to visually look like a time value.

So, to convert a time format to a number in Excel, it’s important to understand that time in Excel is just a type of format.

The values displayed as time are based off a 24-hour day. Where each hour is 1/24 of a day or 4.17% of a day.

NOTE: Time in Excel is a value based on a 24-hour day. Each hour is 1/24 or 4.17% of a day.

For example, 8 am as a decimal would be 0.33 or 33% of a day. And 33% of a day is 8 hours (0.33 x 24).

How to Convert a Time Format to a Number in Excel

WATCH: Convert Time to a Number in Excel (video tutorial)

Now that we know that Excel sees time as a portion of a 24-hour day, we can use this information to convert a time format that displays hours, minutes, and seconds to a decimal value.

We can then calculate how much time in a day that value represents, again, as a decimal value.

Here’s how –

Convert Time in Hours to a Number in Excel

To convert hours to a number, you would multiply the time value by 24.

Let’s say that we need to know how many hours 8:23:45 am (8:23 am and 45 seconds) is as a number. To figure this out, you would multiply the time value by 24.

Multiply by 24 to Convert a Time Value to Total Hours
Multiply by 24 to Convert a Time Value to Total Hours

Your result for total number of hours this represents should be 8.40.

TIP: Make sure the cell in which you are doing this calculation is NOT formatted as time!

Likewise, 16:47:13 (I’m using military time for clarity) would be a total of 16.79 hours.

Example of Time in Excel Converted to Number of Total Hours
Example of Time in Excel Converted to Number of Total Hours

Let’s say someone clocked in at 8:23:45 am and clocked out at 4:47:13 pm, by converting these times to numbers, you can calculate that they worked 8.39 hours.

Convert Time in Minutes to a Number in Excel

To calculate the total number of minutes a time format is, you would multiply by 24 and by 60.

Because 24 hours in a day and 60 minutes in an hour.

To figure out how many minutes in a day 8:23:45 am is, you would multiply this time format by 24, then by 60.

Multiply by 24 and by 60 to Convert a Time Value to Total Minutes
Multiply by 24 and by 60 to Convert a Time Value to Total Minutes

This will result in 503.75 minutes.

TIP: You can also multiply by 1,440, but I find it easier for my brain to multiply by 24, then by 60.

To stay with the example of clocking in at 8:23:45 am (503.75 minutes) and clocking out at 4:47:13 pm (1,007.22 minutes), this would be a total of 503.47 minutes worked.

Example of Time in Excel Converted to Total Minutes, then Calculated the Difference
Example of Time in Excel Converted to Total Minutes, then Calculated the Difference

Convert Time in Seconds to a Number in Excel

If you’ve been reading from the beginning, you may have noticed a pattern. If so, you guessed it! – to calculate how many seconds a time value represents, you would multiply by 24, then by 60, then by 60 again.

Because 24 hours in a day, 60 minutes in an hour, and 60 seconds in a minute.

For example, to calculate how many seconds of a day 8:23:45 am represents, we would multiply the time value by 24, then by 60, then by 60 again. The result would be 30,225 seconds.

Multiply by 24, then by 60, then by 60 again to Convert a Time Value to Total Seconds
Multiply by 24, then by 60, then by 60 again to Convert a Time Value to Total Seconds

TIP: You can also multiply by 86,400 if you prefer.

This means that, if someone clocked in at 8:23:45 am and clocked out at 4:47:13 pm, they worked a total of 30,208 seconds.

NEXT: How to Choose a Time Format in Excel (video tutorial)



FYI: this tutorial was created using the desktop version of Excel in Microsoft 365.

Convert Time to a Number in Excel - Tutorial (Pinterest Image)

❤ Support Free Excel Training by Sharing -

blank

About Y. Acosta

Yil's (pronounced like "Jill") passion for Excel spreadsheets can be traced back to her days in marketing, where she spent significant time working on analytics. As a content creator, she now specializes in Excel spreadsheet tutorials. Make sure to visit the About page to learn more.

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar

Follow us:

Latest Tutorial:

Featured image for How to Use Find & Replace to Remove Wildcard Characters in Excel article

Click Here for More Excel Tutorials!!!

Get Your FREE pdf of Top Excel Keyboard Shortcuts!

* indicates required

blank

Image-button for Invoice Template for Etsy

Copyright © 2025

  • Home
  • Excel Tutorials
  • Resources
  • About Me
  • Privacy Policy & Terms of Use
  • Disclaimer
  • Advertiser Disclosure
  • Contact Me
  • FREE Printable List of Top Excel Keyboard Shortcuts
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
SettingsAccept
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT