How to Convert Time to Decimal in Excel (3 Quick Ways)

Excel is of great use when it comes to thinking about time calculations. At times, you get your dataset in 24-hour time format, but you need the data in decimal values. Regarding this, you will need to convert those time values into decimals. in this article, I will show you 3 quick and suitable ways to convert time to decimal in Excel.


How to Convert Time to Decimal in Excel: 3 Quick Ways

Say, you have 10-time values in Hour: Minute: Second format. Now, you want to convert them to decimals. You can follow any of the 3 suitable ways given below to accomplish this.

Sample Dataset to Convert Time to Decimal in Excel


1. Using the Arithmetic Multiplication

The simplest way to convert time to decimal in Excel is to use the arithmetic multiplication of Excel. Follow the steps below to accomplish this.

📌 Steps:

  • First and foremost, click on the C5 cell and insert the following formula.
=B5*24
  • Subsequently, press the Enter button.

Arithmetic Formula to Convert Time to Decimal Hours Value

  • As a result, you will get the decimal value in the hour value for the respective time value.
  • Now, if you want to do the same for all the other cells below, place your cursor on the bottom right position of the C5 cell.
  • Subsequently, a black fill handle will appear. Drag it downward.

Drag the Fill Handle to Copy the Same Formula

  • Thus, you will get all the hour decimal values for the time values.
=B5*1440
  • Following, hit the Enter button.

Arithmetic Formula to Convert Time to Decimal Minute Value

  • As a result, you will get the minute values for the respective time values and use the Fill handle feature to copy the same formula for all the other cells below.
=B5*86400
  • Subsequently, hit the Enter button.

Arithmetic Formula to Convert Time to Decimal Seconds Value in Excel

Afterward, use the fill handle feature to copy the same formula for all the other cells below.

So, finally, your output should look like this.

Converted Time to Decimal in Excel


2. Using the CONVERT Function

Besides, you can also use the CONVERT function to convert time to hours, minutes, or seconds decimal values. To do this, go through the steps below.

📌 Steps:

  • First, to convert the time values into hour decimals, click on the C5 cell and insert the following formula.
=CONVERT(B5,"day","hr")
  • Following, hit the Enter button.

Using the CONVERT Function to Convert Time to Decimal Hours Value

  • As a result, you will get the decimal hour value for the respective time value.
  • Now, place your cursor in the bottom right position of the cell and a black fill handle will appear consequently.
  • Subsequently, drag it down to copy the same formula to get all the hours values for other time values.

Drag Fill Handle Below

  • Now, to convert the time values to minutes values, click on the D5 cell and insert the formula below.
=CONVERT(B5,"day","mn")
  • Afterward, press the Enter button.

Using CONVERT Function to Convert Time to Decimal Minutes Value in Excel

  • Now, you can use the Fill handle feature to copy the same formula for all the other cells below.
  • Last but not least, to convert the time values into seconds values, click on the E5 cell and write the formula below.
=CONVERT(B5,"day","sec")
  • Following, hit the Enter button.

Using CONVERT Function to Convert Time to Decimal Seconds Value in Excel

  • Thus, you will get the seconds decimal value for the respective time value in Excel.

Just like before, you can use the Fill handle feature to get all the other seconds values from the time values. And, at last, the result sheet should look like this.

Converted Time to Decimal in Excel


3. Combining the HOUR, MINUTE & SECOND Functions to Convert Time to Decimal

Another easy way to convert time to decimal values in Excel is to combine the HOUR, MINUTE, and SECOND functions. Follow the steps below to use these functions to get your desired result.

📌 Steps:

  • First, click on the C5 cell and insert the following formula to convert time to decimal hours value.
=HOUR(B5)+MINUTE(B5)/60+SECOND(B5)/3600
  • Subsequently, hit the Enter button.

Combine HOUR, MINUTE, and SECOND Functions to Convert Time to Decimal Hours in Excel

  • Now, for the other cells below, place your cursor in the bottom right position of the C5 cell.
  • Consequently, a black fill handle will appear.
  • Following, drag it downward.

Use the Fill Handle Feature to Copy the Same Formula

  • Subsequently, you will get all the hour decimal values for all the time values.
  • At this time, to get the minute values for the time values, click on the D5 cell and insert the following formula.
=HOUR(B5)*60+MINUTE(B5)+SECOND(B5)/60
  • Subsequently, hit the Enter button.

Combine Time Functions to Convert Time to Decimal Minutes in Excel

  • Now, you can use the Fill handle feature to convert all the other time values to the minutes’ values.
  • In addition to these, if you need to convert time values to seconds values, click on the E5 cell and insert the following formula.
=HOUR(B5)*3600+MINUTE(B5)*60+SECOND(B5)
  • Afterward, press the Enter button.

Combine the Time Functions to Convert Time to Decimal Seconds in Excel

And, similarly, you can use the fill handle feature to get all the other seconds values from the respective time values. And, at last, the output should look like this.

Converted Time to Decimal in Excel


Convert Decimal to Time Over 24 Hours

Now, you might need to do the opposite sometimes which means converting decimal to time. Say, you are given 10 decimal values over 24 and is needed to convert them to time values. If you want to convert these decimals to time values over 24 hours, you can use the TEXT function to do so. Follow the steps below to accomplish your desired result.

📌 Steps:

  • First and foremost, click on the C5 cell and insert the formula below.
=TEXT(B5/24,"[h]:mm")
  • Subsequently, hit the Enter button.

Using TEXT Function to Convert Decimal to Time over 24 Hours

  • As a result, you will get the first conversion done.
  • Now, place your cursor in the bottom right position of the cell and drag the fill handle below upon its arrival.

Use Fill Handle Feature to Copy Same Formula

Thus, you will get all the decimal values converted to time values over 24 hours. And, for instance, the outcome should look like this.

Converted Decimal to Time Over 24 Hours


💬 Things to Remember

  • To avoid errors, make sure the decimal-containing cells are in the Number format with two decimal places.

Number Format Instructions

  • Another important thing is to keep the time cell values in the h:mm:ss format.

Time Format Instructions

  • You can format the cells by pressing Ctrl +1 or clicking the right button of your mouse over cells and choosing the Format Cells… option.

Download Practice Workbook

You can download our practice workbook from here for free!


Conclusion

So, in this article, I have shown you 3 quick ways to convert time to decimal in Excel. I suggest you read the full article carefully and apply the knowledge to your needs. You can also download our free workbook to practice. I hope you find this article helpful and informative. If you have any further queries or recommendations, please feel free to comment here.


Convert Time to Decimal in Excel: Knowledge Hub


<< Go Back to Time Conversion | Date-Time in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjim Reza
Tanjim Reza

Md. Tanjim Reza Tanim, a BUET graduate in Naval Architecture & Marine Engineering, contributed over one and a half years to the ExcelDemy project. As an Excel & VBA Content Developer, he authored 100+ articles and, as Team Leader, reviewed 150+ articles. Tanim, leading research, ensures top-notch content on MS Excel features, formulas, solutions, tips, and tricks. His expertise spans Microsoft Office Suites, Automating Finance Templates, VBA, Python, and Developing Excel Applications, showcasing a multifaceted commitment to the... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo