Skip to main content

How to convert seconds to time (hh mm ss ) or vice versa in Excel?

Author: Xiaoyang Last Modified: 2020-04-21

Have you ever tried to convert a number of seconds to hh:mm:ss time format or display the time format to seconds in Excel? This article, I will talk about some tricks to solve this task, please read the following details:

Convert a number of seconds to time format with formulas

Convert hh:mm:ss time format to seconds / minutes / hours with Kutools for Excel


arrow blue right bubble Convert a number of seconds to time format with formulas

Supposing, I have the following numbers of seconds in a column, to convert them to days, hours, minutes, seconds time format, you can apply the formulas:

doc convert seconds to time 1

1. Enter this formula: =A2/86400 into a blank cell where you want to output the result, and drag the fill handle down to the cells that you want to apply this formula, and you will get some numbers as following screenshot shown:

doc convert seconds to time 2

2. Select theses formula cells, and right click to choose Format Cells option from the context menu, in the popped out Format Cells dialog box, under the Number tab, click Custom option, and enter dd:hh:mm:ss into the Type box, see screenshot:

doc convert seconds to time 3

3. And then click OK button, and the cells have been displayed as dd:hh:mm:ss time format, see screenshot:

doc convert seconds to time 4

Note: Here is another formula also can help you to display the number of seconds as the text format like this: x hours x minutes x seconds: =TEXT(A2/86400,CHOOSE(MATCH(A2,{0,60,3600},1),"s ""sec""","m ""min"" s ""sec""","[h] ""hrs"" m ""min"" s ""sec""")), after applying this formula, you will get this result, see screenshot:

doc convert seconds to time 5


Convert hh:mm:ss time format to hours / minutes / seconds:

Kutools for Excel's Convert Time feature can help you to convert multiple time format to hours, minutes or seconds as you wanted. Click to download and free trial Kutools for Excel now!

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!


arrow blue right bubble Convert hh:mm:ss time format to seconds / minutes / hours with Kutools for Excel

On the contrary of above problem, if you want to convert hh:mm:ss time format to seconds, minutes or hours, I can recommend a useful tool-Kutools for Excel, with its Convert Time feature, you can quickly convert the time format to the number of hours, minutes or seconds.

After installing Kutools for Excel, please do as follows:

1. Select the times that you want to convert.

2. Click Kutools > Content > Convert Time, then choose Time to Hours / Time to Minutes / Time to Seconds as you need, see screenshot:

3. And your selected time cells have been converted into the desired hours, minutes or seconds you need, see screenshot:

doc convert seconds to time 7

Note: If you don’t like the converted result located in the original cells, you can go the Convert Time dialog by clicking Kutools > Content > Convert Time, in the Convert Time dialog box, choose the convert type you need, and then check Save to another location checkbox, and click a cell where you want to put the result, see screenshot:

doc convert seconds to time 8

Then click OK button, the converted results will be located at the cells you selected.

Download and free trial Kutools for Excel Now !


Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


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!
Comments (13)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Is it possible to add a column of times and get a correct result?
0:31:49
0:43:28
0:46:54
0:15:16
1:19:05
0:07:26
0:10:02
0:22:50
0:01:58
0:27:30
0:54:14
0:39:56
1:12:10
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
I am converting from seconds to format 8 hours 6 minutes 43 seconds this way=LET(hrs,ROUNDDOWN(D2/3600,0),mnts,ROUNDDOWN((D2-(hrs*3600))/60,0),CONCATENATE(hrs," hours ",mnts," minutes ",ROUND((D2-(hrs*3600)-(mnts*60)),0)," seconds"))

LET function is great providing you almost VBA like freedom in assigning variables and values to them.
This comment was minimized by the moderator on the site
It's exactly what I was looking for. Especially TEXT(A2/86400,CHOOSE(MATCH(A2,{0,60,3600},1),"s ""sec""","m ""min"" s ""sec""","[h] ""hrs"" m ""min"" s ""sec""")),Thank you.
This comment was minimized by the moderator on the site
Thaks a lot of .............. Its works successfully
This comment was minimized by the moderator on the site
Lets say I have C2=1 (as hour), D2=5 (as minutes), E2=0 (as seconds) and in F2=3900 as seconds.

In 3900 seconds is multiplied by 10% up to 90%

in A5=F2*0, B5=F2*0.1, C5=F2*0.2 up to J5=F2*0.9 which is 3500 but I wanted the results to be in time format which is 58:30.
This comment was minimized by the moderator on the site
Hi


How to convert seconds to hours please help me.
This comment was minimized by the moderator on the site
Hello, Baskari,
If you just want to convert second numbers to hours, please apply this simple formula:
=A1/3600

Please try, hope it can help you!
This comment was minimized by the moderator on the site
how to convert DD:H:MM to H:MM in excel 2007 For ex. 02(day):(01 hours):10(min) to 49(Hours):10(min)
This comment was minimized by the moderator on the site
Hello, sachin,
The following article can help you to solve your problem, please view it.
https://www.extendoffice.com/documents/excel/4050-excel-convert-dd-hh-mm-to-hours.html

Hope it can help you, thank you!
This comment was minimized by the moderator on the site
How to convert seconds to hh:mm:ss Please help me.
This comment was minimized by the moderator on the site
Hi, baskari,
To convert the number of seconds to hh:mm:ss format, please apply the below formula:

=TEXT(A1/(24*60*60),"hh:mm:ss")

Please try it, hope it can help you!
This comment was minimized by the moderator on the site
How to convert DD:H:MM to H:MM in excel
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations