Time to number excel

Skip to content

Как перевести время в число

В статье рассмотрены различные способы преобразования времени в десятичное число в Excel. Вы найдете множество формул для преобразования времени в часы, минуты или секунды.

Поскольку Microsoft Excel использует числовую систему для работы с временем, вы можете легко преобразовать часы, минуты и секунды в числа, и использовать их в других вычислениях.

Вот о чем мы поговорим в этой статье:

В общем, есть два способа преобразовать время в десятичное число в Excel — 

  • путем изменения формата ячейки  
  • с помощью арифметических вычислений и использованием функций Excel. 

Далее вы найдете подробное объяснение первого способа и примеры формул, демонстрирующие второй метод.

Каки перевести время в десятичное число без формул

Как мы уже не раз говорили, дата и время в Excel представляют собой обычные числа, где отсчет начинается с 1 января 1900 года. Быстрый способ показать число, представляющее определенное время, — использовать диалоговое окно «Формат ячеек».

Для этого выберите ячейку, содержащую время, и нажмите Ctrl + 1, чтобы открыть окно формата.На вкладке «Число» в разделе «Числовые форматы» выберите «Общий», и вы увидите длинную десятичную дробь в поле «Образец».

Такой перевод времени в число вы видите на скриншоте ниже.

перевод времени в число без формул

Теперь вы можете записать это число и нажать кнопку «Отмена», чтобы закрыть окно и ничего не менять. Или же вы можете нажать кнопку OK и представить время в ячейке соответствующим ему десятичным числом.

Фактически, вы можете считать это самым быстрым, простым и без применения формул способе перевестивремя в десятичное число в Excel. 

Как преобразовать время в десятичное число в Excel

Рассмотрим еще три способа преобразования значения времени в десятичное число: 

  • арифметическая операция, 
  • функция ПРЕОБР,
  • комбинация трех различных функций времени.

Самый простой способ превратить время в десятичное число в Excel — умножить исходное значение времени на количество часов, секунд или минут в сутках:

  • Чтобы преобразовать время в количество часов, умножьте время на 24, что соответствует количеству часов в сутках.
  • Чтобы перевести время в число минут, умножьте на 1440, то есть на количество минут в сутках (24*60).
  • Чтобы получить время в количестве секунд, умножьте его на 86400, что равно количеству секунд в сутках (24*60*60).

Далее мы рассмотрим другие методы превращения времени в десятичное число в Excel.

Как перевести время в число часов

В этом разделе демонстрируются три различных формулы для преобразования часов из стандартного формата времени (чч:мм:сс) в десятичное число.

Арифметические действия

Вы уже знаете самый быстрый способ преобразования значения времени в количество часов в Excel — умножение на 24, то есть на количество часов в одних сутках:

=A3*24   (где A2 — значение времени)

Чтобы получить полное количество часов, вставьте приведенную выше формулу в функцию ЦЕЛОЕ (INT в английской версии), или ОТБР (TRUNC по-английски).  Обе они помогут избавиться от дробной части:

=ЦЕЛОЕ(A3*24)

=ОТБР(A3*24;0)

Разница между этими двумя функциями заключается в том, что ОТБР отбрасывает дробную часть, а функция ЦЕЛОЕ округляет число в меньшую сторону до ближайшего целого в зависимости от значения дробной части.  

Эти функции различаются при использовании отрицательных чисел: ОТБР(-5,97;0) возвращает значение -5, просто отбрасывая все то, что находится после запятой. А вот выражение ЦЕЛОЕ(-5,97) возвращает -6, поскольку это ближайшее меньшее целое число. Но поскольку дата и время не могут быть отрицательными, то в данном случае для нас эти функции равноценны. Но лично я предпочитаю использовать ЦЕЛОЕ, поскольку не нужно дополнительно вводить никаких аргументов.

Функция ПРЕОБР

Другой способ выполнить преобразование «время > часы» — использовать следующую формулу преобразования:

ПРЕОБР(число; из_единиц; в_единицы), 

или в нашем случае:

=ПРЕОБР(A3; «day»; «hr»)

Обратите внимание, что все единицы измерения здесь вводятся по-английски. Однако, для слабо владеющих английским это не будет проблемой, так как при вводе формулы нужные наименования вы сможете выбрать из выпадающего списка, в котором все пояснения будут по-русски.

Функции ЧАС, МИНУТЫ и СЕКУНДЫ

Наконец, можно использовать несколько более сложную формулу, логика которой, впрочем, вполне очевидна. Извлеките отдельные единицы времени с помощью функций ЧАС, МИНУТЫ и СЕКУНДЫ, затем разделите минуты на 60 (количество минут в часе) и секунды на 3600 (количество секунд в часе) и после этого сложите результаты:

=ЧАС(A3) + МИНУТЫ(A3)/60 + СЕКУНДЫ(A3)/3600

Как перевести время в число минут

Те же три способа можно использовать для преобразования минут из стандартного формата времени в десятичное число.

Арифметический расчет

Чтобы преобразовать время в общее количество минут, вы умножаете время на 1440, что является количеством минут в одном дне (24 часа * 60 минут = 1440):

=A3*1440

Если вы хотите вернуть точное число минут, используйте функцию ЦЕЛОЕ:

=ЦЕЛОЕ(A3*1440)

Вы можете просмотреть результаты на скриншоте ниже:

Функция ПРЕОБР

Чтобы выполнить преобразование «время > минуты» с помощью функции ПРЕОБР, укажите «day» и «mn» (день и минуты) в качестве единиц для преобразования:

=ПРЕОБР(A3; «day»; «mn»)

Функции ЧАС, МИНУТЫ и СЕКУНДЫ

Еще один способ получить количество минут — умножить часы на 60 и разделить секунды тоже на 60:

=ЧАС(A3)*60 + МИНУТЫ(A3) + СЕКУНДЫ(A3)/60

Как конвертировать время в число секунд

Превращение времени в общее количество секунд в Excel можно выполнить аналогичным образом.

Арифметический расчет

Умножьте значение времени на 86400, что равно количеству секунд в сутках (24 часа * 60 минут * 60 секунд = 86400):

=A3*86400

Функция ПРЕОБР

Формула в основном такая же, как и в приведенных выше примерах, с той лишь разницей, что вы конвертируете дни в секунды:

=ПРЕОБР(A3; «day»; «sec»)

Функции ЧАС, МИНУТЫ и СЕКУНДЫ

Я полагаю, что на данный момент вам не нужны дальнейшие объяснения логики этой формулы :)

=ЧАС(A3)*3600 + МИНУТЫ(A3)*60 + СЕКУНДЫ(A3)

Советы:

  1. Если какая-либо из приведенных выше формул возвращает значение, отформатированное как время, просто измените формат ячейки на Общий или Числовой, чтобы отобразить результат в виде десятичного числа.
  2. Чтобы преобразовать время в десятичное число, представляющее время во внутренней системе Excel , примените к ячейке общий формат. При таком подходе 23:59:59 будет преобразовано в 0,99999, 06:00 — в 0,25, а 12:00 — в 0,5. Если целая часть отформатированного числа больше нуля, это означает, что ваша ячейка содержит значения не только времени, но еще и дату.

Надеюсь, теперь преобразование времени в число не будет для вас проблемой.

Формат времени в Excel Вы узнаете об особенностях формата времени Excel, как записать его в часах, минутах или секундах, как перевести в число или текст, а также о том, как добавить время с помощью…
Как вывести месяц из даты На примерах мы покажем, как получить месяц из даты в таблицах Excel, преобразовать число в его название и наоборот, а также многое другое. Думаю, вы уже знаете, что дата в…
Как быстро вставить сегодняшнюю дату в Excel? Это руководство показывает различные способы ввода дат в Excel. Узнайте, как вставить сегодняшнюю дату и время в виде статической метки времени или динамических значений, как автоматически заполнять столбец или строку…
Количество рабочих дней между двумя датами в Excel Довольно распространенная задача: определить количество рабочих дней в период между двумя датами – это частный случай расчета числа дней, который мы уже рассматривали ранее. Тем не менее, в Excel для…

By default, date and time are saved as numbers/decimals in Excel. But you often see it in different formats because of the way the cells have been formatted.

For example, in the below example, the value in column A and B is the same, but these are displayed differently because of the format.

Same value but different formats of time in Excel

And one of the things many people need in Excel is to convert the time to decimal (such as hours or minutes or seconds).

For example, instead of having the date and time as 01-01-2020 6:30 AM, you may want the get:

  • Number of hours as 6
  • Number of minutes as 30

Thankfully Excel has some awesome formulas, you can easily convert time to decimal values.

How to Convert Time to Decimal Numbers in Excel

In this tutorial, I will show you some examples of converting time to a decimal using formulas (i.e, converting time to hours, minutes, and seconds).

There are multiple ways to convert time to decimal in Excel:

  • Using arithmetic operation is the easiest way to convert time to decimal numbers. For example:
    • To convert time to hours, multiply the time value with 24
    • To convert time to minutes, multiply the time value with 24*60
    • To convert time to seconds, multiply the time value with 24*60*60
  • You can also use Excel in-built formulas such as CONVERT or HOUR/MINUTE/SECOND

In the sections that follow, I will show you examples of how to convert Excel time to decimal values using these methods.

So let’s get started!

Convert Time to Hours in Excel

In this section, I cover three different ways to convert time to hours in Excel.

Using Simple Multiplication to Get the Hour Value

Suppose you have the time in a cell as 6:00 PM  (in cell A2) and you want to convert it into hours.

You can simply multiply it by 24 and it will give you how many hours have elapsed till that time.

=A2*24

Convert Time to Hours using simple multiplication

This works because of the fact that Excel stores dates and times as numbers. A full day (24 hours) is stored as 1 in Excel. This means that each hour is stored as 1/24.

So while you see the value 6:00 PM, in the backend, it is stored as the value 0.75 (indicating that 18 hours out of the 24 hours have already passed). So, when you multiply it with 24, it gives you the number of hours that have passed.

In case you have a value such as 6:32 PM, using the above formula will give you the result as 18.53 (where the minutes/seconds part is shown in decimals and full/complete hours as integers). In this example, the numeric value of 32 minutes in Excel would be 0.53 hours.

Note: In case you get the hour value that has the decimals (such as 18.53), make you sure you have formatted it to show the decimals as well. In case you haven’t, you may see the result as 19, as Excel shows you the rounded off integer value. However, this wouldn’t change the value in the cell, which will continue to be 18.53

In case you only want the complete/full hour value and ignore the minutes part, use the below formula using INT.

=INT(A2*24)

Use INT formula to get full hour value only

INT only gives you the integer part and you don’t have to worry about any extra minutes.

Using Excel Functions (HOUR, MINUTE, and SECOND)

If you don’t like the manual multiplication method, another really easy way to convert time to hours is by using the inbuilt time-related  functions (HOUR, MINUTE, and SECOND)

Suppose, you have the times as shown below and you want to know how many hours have elapsed in the day.

Time to Convert to Hour Value

Below is the formula to convert the time into hours

=HOUR(A2)+MINUTE(A2)/60+SECOND(A2)/(60*60)

Convert Time to Decimal with Hour Minute Second Formula

The HOUR function simply returns the number of hours that have elapsed in the given time, and so does the MINUTE and SECOND function.

But since we need the final value in hours, we need to divide the minute value by 60 (to convert it into hours) and the second value by 60*60 (again to convert it into hours).

Using the Convert Function

Another really easy (probably the easiest of the three methods), is to use the CONVERT function.

This function takes a numerical value (which would be the time in this case) and can convert it into hours (or minutes/seconds).

Below is the formula that will convert time into hours:

=CONVERT(A2,"day","hr")

Convert Time to Decimal using the CONVERT function

The second argument is to tell the function of the existing data format and the third argument is the format to which you want to convert.

Note: Sometimes the results may look different than expected. This could be due to the cell format which may show the result in a date format instead of decimal format. You can easily change this by going to the Home tab and setting the format from the format drop-down (it’s in the Number group)

In practice, you’re more likely to get date and time together (instead of just the time as I have shown in the examples above). You can still use the methods shown above, but you first need to split the date and time value and then use the methods shown above on only the time part. Later in this tutorial, I also cover two methods to separate date and time in Excel using formulas.

You can also use these same methods covered above to convert time to minutes and seconds.

Let’s quickly have a look at those examples as well.

Convert Time to Minutes in Excel

In this section, I cover three different ways to convert time to minutes in Excel.

Using Simple Multiplication to Get the Minute Value

In a day, there are 1440 minutes (24*60).

So, to convert time to minutes, you can simply multiply the time value with 1440.

Suppose you have the time in a cell as 6:00 PM  (in cell A2) and you want to convert it into minutes.

Below is the formula to do this:

=A2*1440

Convert time to minutes with simple multiplication

This will give you the total number of minutes that have elapsed on that day in the given time.

Note: Remember that in case you have seconds as well in the time, these will be converted into minutes and be shown as the decimal part. For these to be visible in the result, you need to format the resulting cells to show results up to 2/3 decimal places.

In case you only want the minute value and ignore the seconds part, use the below formula using INT.

=INT(A2*1440)

Convert time to minute and only get full minutes and not seconds

Using Excel Functions (HOUR, MINUTE, and SECOND)

Just like we used these functions to get the hour value, you can also use these to convert time to minutes.

Below is the formula that will convert time to minutes using these functions:

=HOUR(A2)*60+MINUTE(A2)+SECOND(A2)/60

Convert time to minutes using formulas

Since the aim here to get all the parts in minutes (hours, minutes, and seconds), we multiply 60 with hours to get the minutes value in it and we divide seconds by 60 to get the minute value.

Using the Convert Function

Again, definitely the easiest way to convert time to minutes is by using the convert formula.

The below formula takes the time value and converts it into minutes;

=CONVERT(A2,"day","mn")

Convert time to minute using the CONVERT function

The second argument tells the function that the value in cell A2 is in day format and the third argument (“mn”) tells it to convert it into minutes.

Convert Time to Seconds in Excel

In this section, I cover three different ways to convert time to seconds in Excel.

Using Simple Multiplication to Get the Seconds Value

In a day, there are 86400 seconds (24*60*60).

So, to convert time to seconds, you can simply multiply the time value with 86400.

Suppose you have the time in a cell as 6:32:30 PM  (in cell A2) and you want to convert it into seconds.

Below is the formula to do this:

=A2*86400

Convert Time to seconds with simple arithmetic multiplication

This will give you the total number of seconds that have elapsed on that day in the given time.

Using Excel Functions (HOUR, MINUTE, and SECOND)

Below is the formula that will convert time to minutes using these functions:

=HOUR(A2)*60*60+MINUTE(A2)*60+SECOND(A2)

Convert time to minutes using HOUR MINUTE SECOND formulas

Since the aim here to get all the parts (hours, minutes, and seconds) in seconds, we multiply 60*60 with hours to get the seconds value in it and we multiply minutes by 60 to get the seconds value.

Split Date and Time and Then Convert Time to Decimal

So far, we have seen examples where we only have the time and we wanted to convert that time into hours, minutes or seconds.

But what if you have the date as well as the time?

In that case, you can not use the above methods directly. You will first have to split the date and time and then convert the time to decimals.

Since date and time are stored as numbers in Excel, separating these gets easier.

A full day is stored as an integer and the time part is stored as a decimal value. So if you want to separate date and time, you simply need to separate the integer part and the decimal part.

Let’s have a look at a couple of really easy ways to split the date and time in Excel.

Split Date and Time using INT Formula

Suppose you have the dataset as shown below and you want to split the date and time.

Date and time that needs to be split

To do this, enter the following formula in cell B2:

=A2-INT(A2)

Split date and time using INT function

The above formula removes the integer part and gives you the decimal part of the date.

Now you can use any of the three methods covered above (using arithmetic multiplication, using HOUR/MINUTE/SECOND formula, or using the CONVERT formula) to convert the time to decimal.

Also read: How to Convert Seconds to Minutes in Excel (Easy Formula)

Split Date and Time using the MOD Formula

Another way to do this can be by using the MOD function.

Suppose you have the dataset as shown below and you want to split the date and time.

To do this, enter the following formula in cell B2:

=MOD(A2,1)

Split Date and Time using MOD function

This would give you the decimal part right away and then you can use any of the three methods covered above to convert time to decimal numbers (hours, minutes, or seconds).

You may also like the following Excel tutorials:

  • Calculate Time in Excel (Time Difference, Hours Worked, Add/ Subtract)
  • How to Remove Time from Date/Timestamp in Excel
  • How to Insert Date and Timestamp in Excel
  • How to Calculate the Number of Days Between Two Dates in Excel
  • Convert Date to Text in Excel
  • How to Stop Excel from Changing Numbers to Dates
  • How to Stop Excel from Rounding Numbers (Decimals/Fractions)
  • How to Display Numbers as Fractions in Excel (Write Fractions in Excel)

Excel for Microsoft 365 Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More…Less

Let’s say you want to find out how many hours there are in 5.5 days, or how many days there are in 3.45 years, or how precisely how many months will pass between a beginning date and an ending date.

There are several ways to convert time units.

To convert from one time unit to another, use the CONVERT function.

Example: Convert between time units

Note: For conversions that involve a year, consider that a year is 365.25 days.

To convert from hours : minutes : seconds format, use the INT function.  

Example: Convert hours from standard time format to a decimal number

To convert from decimal to hours : minutes : seconds format, use the divisor operator (/) together with the TEXT function.

Example: Convert hours from decimal number to the standard time

Note: You can also apply the time format without using the TEXT function to specify the format. To view the number as a time: select the cell and, on the Home tab—in the Number group—click the arrow next to the Number Format box. Then click More Number Formats, click Custom in the Category list, and then click a custom format in the Type box. Keep in mind: if you use both a format applied with the TEXT function and number format, the TEXT function takes precedence.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Skip to content

Convert Time Into Decimals in Excel (Hours/Minutes/Seconds)

Convert Time Into Decimals in Excel (Hours/Minutes/Seconds)

Do you know how to convert time into decimals in Excel? 🤔

By knowing how to convert time into decimals in Excel, you don’t have to manually compute your time value into hours, minutes, and seconds. Let Excel do that for you!

In this tutorial, we’ll show you how to convert time into decimals in Excel so you can make use of it for your timesheets and a whole lot more ⌚

To start, download this free practice workbook we’ve prepared for you to work on for this tutorial.

Convert time to decimal

Before you can convert time into hours or minutes or seconds, you need to first convert time into decimal numbers.

Let’s go with the basics of the Excel time system so you can better understand how time conversion works.

When you write “6:00” in Excel, it automatically detects the data as “h:mm” or hours minutes format. When you change its format to “Number”, you’ll get “0.25” instead.

Now, why did it change to 0.25? 🤔

This is because, in the Excel time system, 24 hours is equal to 1. Any time value you enter into the cell is divided by 24 when changed into Number format. The formula below shows why it displayed 0.25.

6 / 24 = 0.25

That’s it!

In Excel, there are two (2) ways to convert time to decimal values:

  • The Arithmetic Method
  • The CONVERT Function Method

Let’s discuss them one by one 😀

Arithmetic Method

The easiest way to convert time to decimal in Excel is using the Arithmetic Method. All you need to do is to multiply the original time value by the number of hours, minutes, or seconds in a day:

  • To convert time to a number of hours, multiply the time by 24, which is the number of hours in a day.
  • To convert time to minutes, multiply the time by 1440, which is the number of minutes in a day (24*60).
  • To convert time to seconds, multiply the time by 86400, which is the number of seconds in a day (24*60*60 ).

Convert Function Method

If you don’t know how many hours, minutes, or seconds there are in a day, the CONVERT function is a good (if not the better) alternative for you.

From its name, the CONVERT function converts a number from one measurement system to another. Whether it’s weight or mass, distances, time, and more.

Don’t worry, we’ll only cover conversion in the time measurement system for this tutorial 😊

The syntax of the CONVERT function is:

=CONVERT (number, from_unit, to_unit)

With the following arguments:

  • number: numeric value to convert
  • from_unit: the beginning unit
  • to_unit: the ending unit

Because we’re dealing with converting time to numbers, there are only 4 units we need to remember:

  • “day”
  • “hr”
  • “mn”
  • “sec”

To convert time to decimals using the CONVERT function, simply supply the appropriate units to the formula.

It’s time to put these methods into action. Open your practice workbook and you’ll see different time values in the time column. Let’s convert time to decimal hours, minutes, and seconds 💪

Convert time to hours

Let’s convert time to decimal hours using the 2 methods mentioned above.

First, let’s use the arithmetic method.

All we need to do is simply multiply the time value by 24.

  1. Double-click the cell and then type the equal sign to begin the formula.
convert excel time
  1. Click the cell reference of the time value and multiply it by 24. Use the following formula:

=B3*24

simple multiplication
  1. Press Enter.
format cells into numbers

Don’t worry if you get 0:00 as the result 😰

Every time you multiply a value in Time format, Excel may automatically display the result in the same format as well.

To display the number of hours, go to the Number group in the Home Tab. Select General or Number from the drop-down.

You’ll immediately see that the time is now converted into decimal hours 😊

hours in decimal value

Let’s try to convert time into decimal hours using the CONVERT function.

  1. Double-click the cell.
  2. Type the CONVERT function.

=CONVERT(

convert function
  1. The first argument in the formula is the number. Click the cell reference where your time value is. In our case, it’s cell B3.

=CONVERT(B3,

cell reference
  1. The next argument is the from_unit which is the beginning unit. The beginning unit is “day”.

=CONVERT(B3,”day”,

from_unit
  1. The last argument is the to_unit which is the ending unit. The ending unit is hour, so type “hr”. Then close the formula with a right parenthesis.

=CONVERT(B3,”day”,”hr”)

to_unit
  1. Press Enter.
convert time to hours

Whether you use the Arithmetic method or the CONVERT function, you will get the same result 👍

Fill in the rest of the rows by double-clicking or dragging down the fill handle.

total hours in decimal numbers

You have successfully converted time to decimal hours!

But you’ll observe that the results have a lot of decimal values 😟

To get rid of the other decimal places and get the nearest whole number of hours, use the INT function. The INT function returns the integer part of the decimal number by rounding the value down.

All you have to do is place it before the formula like this 😊

For arithmetic method:

=INT(B3*24)

INT function

For the CONVERT function method:

=INT(CONVERT(B3,”day”,”hr”))

INT function

Fill in the rest of the rows.

complete total hours

Now you have the number of hours in whole numbers 👍

Once you get this, converting time to minutes and seconds in Excel will go smoothly. It follows the same steps. Let’s get to it right away!

Kasper Langmann, Microsoft Office Specialist

Convert time to minutes

The same two (2) methods can be used to convert time into a number of minutes.

For the arithmetic method, multiply the time you want to convert by 1440. Like this:

=B3*1440

simple multiplication

If you see the result 0:00. Just change its format to Number or General just like what we did when we converted time to decimal hours earlier.

If you want to return the number of complete minutes, utilize the INT function like in the previous example:

=INT(B3*1440)

Using the CONVERT function to convert time to a number of minutes will yield the same result.

Use this formula:

=CONVERT(B3,”day”,”mn”)

formula

Since we want to convert time to a number of minutes, use “mn” for the to_unit in the formula.

To return to a complete number of minutes, use the INT function.

=INT(CONVERT(B3,”day”,”mn”))

Fill in the rest of the rows. And there you have it! Calculate time in minutes takes only a few minutes with Excel ⚡

answer

Convert time to seconds

Converting time to a number of seconds in Excel can be done similarly.

If you want to use the Arithmetic method, multiply the time value by 86400.

=B3*86400

simple multiplication

Or you can use the CONVERT function to convert time to a number of seconds.

=CONVERT(B3,”day”,”sec”)

convert function

Here, you don’t need to use the INT function anymore since you need to calculate time into a complete number of seconds.

Fill in the rest of the rows.

fill other cells

Now, this is how the spreadsheet should look like 👇

spreadsheet

That’s it – Now what?

Hooray! Now you have successfully learned how to convert time into decimals in Excel. You can actually save time when calculating time in Excel. Whether in hours, minutes, or seconds, you can convert time in no time 😉

With its awesome features and functions, Excel helps you skip manual work and get the job done faster and easier. This only means that you shouldn’t stop learning about Excel here.

Learn top Excel functions you wish you knew sooner to get work done faster and easier. Logical functions like IF and SUMIF, and the most useful (and popular) Excel function: VLOOKUP 🚀

Sign up for my free online Excel course 📧 to turbocharge your skills in Excel! You’re one click close to becoming an Excel Expert 😎

Frequently asked questions

To change values from time format to number in Excel,

  1. Right-click the cell and select Format cells.
  2. In the Format cells dialog box, select Number from the category list on the Number Tab.
  3. Finally, click OK.

To convert time in hours minutes format (hh:mm) into decimal, all you have to do is change its current format to Number format. Click the cell then go to the Number group in the Home Tab. Select Number from the drop-down.

Kasper Langmann2023-01-26T23:05:51+00:00

Page load link

In the Excel time system, one 24-hour day is equal to 1. This means times and hours are fractional values of 1, as shown in the table below:

Hours Time Fraction Value
1 1:00 AM 1/24 0.04167
3 3:00 AM 3/24 0.125
6 6:00 AM 6/24 0.25
4 4:00 AM 4/24 0.167
8 8:00 AM 8/24 0.333
12 12:00 PM 12/24 0.5
18 6:00 PM 18/24 0.75
21 9:00 PM 21/24 0.875

Because each hour can be represented as 1/24, you can convert an Excel time into decimal hours by multiplying the value by 24. For example, with the time value 6:00 cell A1, you can visualize the conversion like this:

=A1*24
=(6/24)*24
=0.25*24
=6

Format result as number

When you multiply a time value by 24, Excel may automatically format the result using a time format like h:mm, which will display the value incorrectly. To display the result as a regular number, apply the General or Number format.

Like this post? Please share to your friends:
  • Time to hour excel
  • Time to complete word problems
  • Time table other word
  • Time symbol in word
  • Time stamp in word