Note: The other languages of the website are Google-translated. Back to English

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

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!

The Best Office Productivity Tools

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. 60-day money back guarantee.
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
Comments (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How to convert DD:H:MM to H:MM in excel
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
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
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
Thaks a lot of .............. Its works successfully
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
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
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations