របៀបបម្លែងតម្លៃពីវិនាទី ទៅជា ម៉ោង នាទី វិនាទី - Convert Second to Hour Minute Second Format in Excel (video)
Learn easy way to convert total seconds into hour minute second format (hh:mm:ss) in Excel Khmer using simple formula.
Advertisement
Hello everyone! Today I show you very easy step-by-step how to convert total seconds into hour, minute, and second format (hh:mm:ss) in Excel.
In this video, we use very simple formula and custom cell formatting.
🛠️ Easy Step-by-Step Formula
Step 1: Write Divide Formula
Because 1 day have 24 hours x 60 minutes x 60 seconds = 86,400 seconds, you just divide total seconds cell by 86400:
=A2/86400
Step 2: Format Cell to Time Format (hh:mm:ss)
After press Enter, Excel will show small decimal number. Don't worry! Change cell format like this:
- Select your calculation cell.
- Press shortcut Ctrl + 1 (or Right Click -> Format Cells).
- Go to Category -> click Custom.
- In Type box, type
hh:mm:ssand click OK.
Advertisement
💡 Pro Tips
- If Total Hours More Than 24 Hours: Use
[h]:mm:sswith square bracket[h]. If you use normalhh:mm:ss, Excel will reset hour count to00after 24 hours![h]keep total total hours accumulated. - Convert Direct to Text with
TEXT()Formula: If you want output directly as text without manual cell formatting, use formula:=TEXT(A2/86400, "hh:mm:ss") - No Leading Zero for Hour: Use
h:mm:ssif you prefer1:05:20instead of01:05:20.
Found this tutorial helpful? Share it with colleagues:
Advertisement