How to convert military time to standard time in Excel
Formula (Excel and Google Sheets)
=INT(A2/100)/24+MOD(A2,100)/1440Split the number into hours and minutes: =INT(A2/100)/24+MOD(A2,100)/1440, then format as h:mm AM/PM.
- Result on the example
- one result per row in
B2, filled down toB6 - Works in
- Every current version
- Google Sheets
- Same formula
See it work
The formula is already in B2, filled down to B6. Change any input and the result updates, or edit the formula to experiment.
How it works
INT(A2/100) is the hours and MOD(A2,100) the minutes of a time written as a number like 1430. Dividing them by 24 and 1,440 turns them into a fraction of a day, which the h:mm AM/PM format shows as 2:30 PM. TIME(INT(A2/100),MOD(A2,100),0) does the same.
=INT(A2/100)/24+MOD(A2,100)/1440Result0.6041666667
A21430The value in A2.
A2/10014.3The / operator divides.
INT(A2/100)14INT: Rounds down to the nearest integer.- number
A2/10014.3
- number
INT(A2/100)/240.5833333333The / operator divides.
MOD(A2,100)30MOD: Remainder after division.- number
A21430 - divisor
100
- number
MOD(A2,100)/14400.02083333333The / operator divides.
INT(A2/100)/24+MOD(A2,100)/14400.6041666667The + operator adds.
In Google Sheets
The same formula works in Google Sheets: =INT(A2/100)/24+MOD(A2,100)/1440. We ran it in Google Sheets mode on the same data and it returns the same results.
Other ways to do it
Each one was run on the same example sheet.
| Formula | Result | When to use it |
|---|---|---|
| =TIMEVALUE(LEFT(TEXT(A2,"0000"),2)&":"&RIGHT(A2,2)) | 2:30 PM, 8:15 AM, 11:45 PM… | Pads to four digits, puts a colon in and converts the text. |
Common mistakes
- Times before 10 AM lose their leading zero (0815 is stored as 815). INT and MOD handle that; LEFT on the unpadded number doesn't.
- Military time stored as text with a colon, like "14:30", is already a time; use TIMEVALUE on it.
Try it yourself
Same data, empty answer cell. Your formula is graded instantly, then re-checked on changed data, so a typed-in number won't pass.
Convert military time to standard time
B2, convert the 24-hour number (like 1430) to a real time, and fill down to B6.Questions
How do I convert standard time to military time?
=TEXT(B2,"hhmm") gives "1430" as text.
How do I show 24-hour time without AM/PM?
Format the cell as hh:mm.
Checked by running on 2026-10-30: every formula and result on this page was calculated by the Spreadsheet Practice formula engine, in both Excel and Google Sheets modes.