
- MS Excel Basics
- Excel - Home
- Excel - Getting Started
- Excel - Explore Window
- Excel - Backstage
- Excel - Entering Values
- Excel - Move Around
- Excel - Save Workbook
- Excel - Create Worksheet
- Excel - Copy Worksheet
- Excel - Hiding Worksheet
- Excel - Delete Worksheet
- Excel - Close Workbook
- Excel - Open Workbook
- Excel - Context Help
- Editing Worksheet
- Excel - Insert Data
- Excel - Select Data
- Excel - Delete Data
- Excel - Move Data
- Excel - Rows & Columns
- Excel - Copy & Paste
- Excel - Find & Replace
- Excel - Spell Check
- Excel - Zoom In-Out
- Excel - Special Symbols
- Excel - Insert Comments
- Excel - Add Text Box
- Excel - Undo Changes
- Formatting Cells
- Excel - Setting Cell Type
- Excel - Setting Fonts
- Excel - Text Decoration
- Excel - Rotate Cells
- Excel - Setting Colors
- Excel - Text Alignments
- Excel - Merge & Wrap
- Excel - Borders and Shades
- Excel - Apply Formatting
- Formatting Worksheets
- Excel - Sheet Options
- Excel - Adjust Margins
- Excel - Page Orientation
- Excel - Header and Footer
- Excel - Insert Page Breaks
- Excel - Set Background
- Excel - Freeze Panes
- Excel - Conditional Format
- Working with Formula
- Excel - Creating Formulas
- Excel - Copying Formulas
- Excel - Formula Reference
- Excel - Using Functions
- Excel - Builtin Functions
- Advanced Operations
- Excel - Data Filtering
- Excel - Data Sorting
- Excel - Using Ranges
- Excel - Data Validation
- Excel - Using Styles
- Excel - Using Themes
- Excel - Using Templates
- Excel - Using Macros
- Excel - Adding Graphics
- Excel - Cross Referencing
- Excel - Printing Worksheets
- Excel - Email Workbooks
- Excel- Translate Worksheet
- Excel - Workbook Security
- Excel - Data Tables
- Excel - Pivot Tables
- Excel - Simple Charts
- Excel - Pivot Charts
- Excel - Keyboard Shortcuts
- MS Excel Resources
- Excel - Quick Guide
- Excel - Useful Resources
- Excel - Discussion
How to Convert Time Format from 12 Hour to 24 Hour and Vice Versa in Excel?
Generally, in Excel, converting time can be one of the most common tasks. If we try to do it manually, then it can be a very time-consuming and complex process. A 12-hour clock has two sets, namely AM and PM, whereas the 24-hour clock has only one set. As almost all the clocks show us the time in 12-hour format, it can be an important process to convert the time into 24-hour time because 24-hour time can be used as a standard method to use the time without mentioning am or pm. Read this tutorial to learn how you can convert time formats from 12 hour to 24 hour and vice versa in Excel.
Converting Time Format from 12 Hour to 24 Hour in Excel
Here we will use the TEXT formula to get any one of the results, then use the autofill handle to get all the results. Let us look at a simple procedure for converting time formats from 12 hours to 24 hours in Excel. We can complete this process simply by using the formulas supported by Excel.
Step 1
Let us consider any Excel sheet that contains a list of times in the 12-hour format as similar to the below image.

Now click on the empty cell in our case, cell B2, and enter the formula as =TEXT(A2,"[hh]:mm:ss") and click Enter to get the first result as shown in the below image.

Step 2
To get all the results, drag down from the first result using the auto-fill handle, and our final result will be similar to the below image.

If we need to convert 24-hour format to 12-hour format, we can use the process just by changing the formula to =TEXT(A2,"hh:mm:ss AM/Pm").
Conclusion
In this tutorial, we used a simple example to demonstrate how you can convert time formats from 12 hour to 24 hour and vice versa in Excel.
- Related Articles
- Python program to convert time from 12 hour to 24 hour format
- C# program to convert time from 12 hour to 24 hour format
- C++ program to convert time from 12 hour to 24 hour format
- Convert time from 24 hour clock to 12 hour clock format in C++
- Converting 12 hour format time to 24 hour format in JavaScript
- How to convert 12-hour time scale to 24-hour time in R?
- How to convert string to 24-hour datetime format in MySQL?
- Java Program to display time in 24-hour format
- Java Program to display Time in 12-hour format
- How to Convert Seconds to Time (hh mm ss) or Vice Versa in Excel?
- Program to convert hour minutes’ time to text format in Python
- How to Convert a String to Hexadecimal and vice versa format in java?
- How to Convert Letter to Number or Vice Versa in Excel?
- 24-hour time in Python
- Python Pandas - Format the Period object and display the Time with 24-Hour format
