Skip to main content

How to convert military time to standard time in Excel?

Author: Sun Last Modified: 2020-05-07

Maybe you have accepted a worksheet with a list of military time as shown as below, and you are used to viewing standard time, so you want to convert these military time to standard time in Excel, how can you do?


arrow blue right bubble Convert military time to standard with formula in Excel

In Excel, you can convert the military time to standard time with formula quickly.

1. Select a blank cell to type this formula =TIMEVALUE(LEFT(A1,2)&":"&MID(A1,3,2)&":"&RIGHT(A1,2)) (A1 indicates the cell you want to convert the military time to standard time, you can change it as you need), and press Enter key, then drag the fill handle to fill the range you want. See screenshot:

2. Then select the range B1:B6 (the range you use the above formula, you can change it as you need), and right click to click Format Cells. See screenshot:

3. In the Format Cells dialog, click Number tab, and click Time from the Category box, then select the standard time format from the right section. See screenshot:

4. Click OK, you can see the result:

Tip: If the military time just has hour and minute such as 2323, you can use this formula =TIMEVALUE(LEFT(A1,2)&":"&RIGHT(A1,2)) and then follow the above steps to convert it to standard time. See screenshot:


arrow blue right bubble Convert standard time to military with formula in Excel

To convert standard time to military time, you also can use a formula to solve it.

Select a blank cell, and type this formula =TEXT(A1,"HHMMSS") (A1 indicates the cell you want to convert the military time to standard time, you can change it as you need), and press Enter, then drag the fill handle to fill the range you want. See screenshot:

Tip: If the standard time just have hour and minute such as 11:23 PM, you can use this formula =TEXT(A1,"HHMM"). See screenshot:

Tip.If you want to convert nonstandard dates to the standard date mm/dd/yyyy , please try to use the Kutools for Excel’s Convert to Date as shown in the following screenshot. It’s full function without limitation in 30 days, please download and have a free trial now.

Quickly convert nonstandard date to standard date formattiing(mm/dd/yyyy)

In some times, you may received a workhseets with multiple nonstandard dates, and to convert all of them to the standard date formatting as mm/dd/yyyy maybe troublesome for you. Here Kutools for Excel's Conver to Date can quickly convert these nonstandard dates to the standard date formatting with one click.  Click for free full featured trial in 30 days!
doc convert date
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Relative Articles:

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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Had to recreate this.

I had a list of Military Hour Blocks in column E for my worksheet (Example: 0, 1, 2, ...10, 11, 12, 13, 14, ...)

This was the formula I had to use.
=IF(E:E >11,TIMEVALUE(CONCAT(RIGHT(E2-12,2)," ","PM")),TIMEVALUE(CONCAT((E2)," ","AM")))
This comment was minimized by the moderator on the site
The problem with this is you have to use two columns
This comment was minimized by the moderator on the site
Yes, but you can copy and pasted the formula result as value, then delete the original column and formula column if you do not need them any more, Now you will leave only one result column.
This comment was minimized by the moderator on the site
I think this solves my problem of miltary times that are less than 1000 not having the zero in front (e.g. 714 rather than 0714):

=IF(A1<1000,CONCAT(0,A1),A1)
This comment was minimized by the moderator on the site
Sorry for reply you too late.In my version, the formula can work for three digits number which do not need to be add the leading zero. If it cannot to work for you, you can add leading zero by format the cells as 0000 in the Format Cells > Custom.
This comment was minimized by the moderator on the site
What if the military time doesn't contain the zero in front? For example 0714 is showing as 714. How do you format these times quickly so that your formula above works correctly?
This comment was minimized by the moderator on the site
Thanks, it seemed to work great even though I am not that sharp with excel. I was able to find a pre-made excel spreadsheet that converts standard time to military time automatically for my needs at another site. You can find it here: http://www.militarytime.us/military-time-converter/ (the link is under the converter tool that is also quite nice for a quick single conversion). Thought others might find it useful as well.
This comment was minimized by the moderator on the site
This works well, but there's rounding errors after a few instances of this. How do you fix that? (I. E. I get down to where I'm adding 20 seconds to my start time, but the output time is 3 seconds later than it should be.)
This comment was minimized by the moderator on the site
Good instruction that worked well. Thank you, Chess
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations