Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to convert hours, minutes and seconds to decimal hours in Excel?

If you have a list of time shown as decimal hours formatting, but you are used to hh:mm:ss (hours, minutes and seconds formatting), how can you do? With the following methods you can solve the problem about conversations between hours, minutes, seconds and decimal hours.

Convert hours, minutes and seconds to decimal with formula

Convert hours, minutes and seconds to decimal with one clickgood idea3

Convert decimal to hours, minutes and seconds with formula

Convert decimal to hours and minutes with VBA


good ideaConvert Time

Kutools' Convert Time utility can quickly convert a time to decimal hours, minutes, seconds.
doc convert time 1
Time to decimal hours
Time to decimal minutes
Time to decimal seconds
doc convert time 2
doc convert time 3
doc convert time 4
Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

Convert hours, minutes and seconds to decimal with formula


Supposing you have a list of time in hours, minutes and seconds formatting in Column A, and to convert them to decimal time you just need to follow these steps:

1. Select a blank cell, for instance, Cell B1, enter this formula =A1*24 in the cell (the Cell A1 indicates the cell you want to convert its data to decimal time, you can change it as you need), then click Enter button on the keyboard. See screenshot:

2. Then drag the handle fill to fill the range you want to work. See screenshot:

3. Then you need to format the result cells in Column B as general formatting by selecting the range, right clicking, and clicking Format Cells in the context menu. See screenshot:

4. Then click Number tab in the Format Cells dialog, and click General from Category: box, then click OK to close the dialog. See screenshot:

You can see the result as shown as bellow:

formula Never need to worry about long long formulas in Excel anymore! Kutools for Excel's Auto Text can add all formulas to a group
as auto text, and liberate your brain!       Know About Auto Text     Get Free Trial

Convert hours, minutes, seconds to decimal hours with one click

If you have Kutools for Excel installed in Excel, you can use the Convert Time utility to quickly convert hh:mm:ss to deciaml hours/minutes/seconds.

Kutools for Excel, with more than 120 handy Excel functions, enhance your working efficiency and save your working time.

After free installing Kutools for Excel, please do as below:

Select the time cells and click Kutools > Content > Convert Time, and to select the converting option to meet your need. See screenshot:doc kte 1

Then a dialog pops out to remind you the number of converted cells, click OK to close it, and all the selected time has been converted.
doc kte 2

Tip: If you want to save the converted decimal in another location, you can click Kutools > Content > Convert Time to display the Convert Time dialog, and then in the dialog, check the convert type you need, and check Save to another location checkbox, and select a cell to output the result, click Ok, and the time has been converted and located at new location. See screenshot:

doc kte 3
doc kte 4

pay attention1If you are interested in this addi-in, download the 60-days free trial.

Convert decimal to hours, minutes and seconds with formul

In reverse, if you want to convert decimal time to hours, minutes and seconds formatting, you can do as follow:

Supposing your data is in Column A, and you need to convert them to hours, minutes, seconds formatting.

1. Select a blank cell, in this case, I select Cell B1, and type this formula =A1/24 in B1 (the Cell A1 indicates the cell you want to convert its data to hours, minutes and seconds formatting, you can change it as you need), then click Enter button on the keyboard. See screenshot:

2. Repeat step 1 to enter the above formula as you need in Column B one by one, for example, enter =A2/24 in cell B2 and click Enter. See screenshot:

3. Then you need to format the cells in Column B as hh:mm:ss formatting by selecting the range which use the formula and right clicking, click Format Cells in the context menu. See screenshot:

4. Then click Number tab in the Format Cells dialog, and click Time from Category: box, and select 13:30:55 from the Type: box in the right section, then click OK to close the dialog. See screenshot:

You maybe interested in this:

Convert to Date

In some times, you can have multiple nonstandard dates in your worksheet, and to convert all of them to the standard date mm/dd/yyyy maybe troublesome for you. Here Kutools for Excel's Conver to Date can quickly convert dates to standard date as mm/dd/yyyy format.
doc convert date

You can see the data have been converted.


Convert decimal to hours and minutes with VBA

With the above formula =A1/24 to convert the time one by one is somewhat time-waste, but with the VBA code, you can convert a list of decimal time to hours and minutes at once.

1. Hold ALT button and press F11 on the keyboard to open a Microsoft Visual Basic for Application window.

2. Click Insert > Module, and copy the VBA into the module.

VBA: Convert decimal time to hours and minutes

Sub ConvertToTime()
'Updateby20140227
Dim Rng As Range
Dim WorkRng As Range
Dim xHours As Variant
Dim xMin As Variant
Dim xValue As Variant
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    xValue = Rng.Value
    xHours = VBA.Split(xValue, ".")(0)
    xMin = VBA.Split(xValue, ".")(1) * 60
    Rng.Value = xHours & ":" & VBA.Left(xMin, 2)
Next
End Sub

3. Click Run button or press F5 to run the VBA, then a KutoolsforExcel dialog pops up for you to select a work range. See screenshot:

4. Click OK in the pop-up dialog, the selected range data has been converted to hours and minutes formatting. See screenshot:

Tip: With the above VBA code running, you will lost your original data, so you’d better copy and reserve them before the VBA running.


Relative Articles:


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Zsolt J. Emmert · 4 years ago
    [b]Hello Computer Good morning Could Tell On Me Where do i Located now relative to my Home Terminal Called Owner Star Entertainment.?[/b]
  • To post as a guest, your comment is unpublished.
    JESSIEL SAMSON · 4 years ago
    Thank u so much. :)
    I got it now. This is very helpful.
  • To post as a guest, your comment is unpublished.
    Afaq · 5 years ago
    i have one query regarding time format. i received a phone call log report from my company. and this time report is like this, please see below:

    IVR Ringing Talking Hold
    00:08 00:02 05:42 00:12
    mm:ss mm:ss mm:ss mm:ss

    When I put these values in excel sheet 2007, the minutes become hours and seconds become minutes so I wont be able to make the accurate values.