How to Convert Time Format from 12-Hour Clock to 24 OR 24 to 12-Hour Clock in Excel

Sometimes we need to enter time into excel, and as we all know there are several formats to show the time. We often use 12-hour clock or 24-hour clock to show the time like 3:01:01PM or 15:01:01, one time displays in two different formats. So if we want to convert time format between them, how we can do? This article will show you the method to convert 12-hour clock to 24-hour clock in excel and vice versa.

Preset Time Format in Excel

If you just want to enter Time into excel by 12-hour clock or 24-hour clock format, you can preset your cell format to a proper one before entering the time.

Step1: Open a blank excel, select column A for example, right click, select ‘Format Cells…’.

24-Hour Clock 1

Step 2: In Format Cells, under Number tab, select Time in Category list. Then all Types are loaded in the right. See below screenshot:

24-Hour Clock 2

Step 3: You can select the Type you expect to show the time when you entering time data into excel. For example, we select the first one 12-hour format to show the time, click OK on Format Cells to save the preset. Then in A1, we enter 13:55:55 directly. After inputting and clicking Enter, 1:55:55 PM is auto displayed in the cell.

24-Hour Clock 3

If you already have a list of time in existing excel worksheet, how can we convert time format to expect time format? You can follow below steps to convert time format.

Convert from 12-Hour Clock to 24-Hour Clock

Step 1: Prepare a list of time in excel. See below.

24-Hour Clock 4

Step 2: In column B->B1, enter formula ‘=TEXT(A1,”HH:MM:SS”)’, click Enter. Verify that PM is cleared properly.

Step 3: Copy B1 to B2 and B3 (or hold B1 and drag down to B3 directly). Time in A column is converted to 24-hour clock properly now.

24-Hour Clock 5

Convert from 24-Hour Clock to 12-Hour Clock

Step 1: Following above steps, a list of 24-hour format time is displayed in B column. Now in column C->C1, enter the formula ‘=TEXT(A1,”HH:MM:SS AM/PM”)’. Verify that 24-hour format is converted back to 12-hour format.

24-Hour Clock 6

Step 2: Use the same way to fill C2 and C3.

24-Hour Clock 7

Step 3: Be aware that the slash is “/”, if you entered “\” you may get below result improperly.

24-Hour Clock 8

Video: Convert Time Format from 12-Hour Clock to 24 OR 24 to 12-Hour Clock in Excel

Related Posts

Match Single Criteria in Excel

No repeat statistic based on a single condition is used wildly in daily work, for example, count type of products, the duplicate types are not encountered. This article describes the way of no repeats statistics for data in a single ...

Excel Array Construction

This article will talk about how to create one-dimensional array or two-dimensional array by using some functions in Excel. When using array formulas in Excel, we often use functions to construct arrays. Generate Array with ROW or COLUMN Functions Array ...

Excel Array Operation

We have all heard of arrays. Depending on the dimensionality, they are divided into one-dimensional arrays and two-dimensional arrays. Depending on the data type, they can also be divided into numeric arrays, logical arrays, and so on. The concatenation and ...

Excel Array Matrix Operation

In Excel, we have a built-in function used to perform matrix operations. It is the MMULT function. This function accepts two arrays as parameters and returns the product of the two arrays. However, this function has a prerequisite that the ...

A1 Reference Style and R1C2 Reference in Excel

In Excel, there are two reference styles. A1 reference style and R1C2 reference style. These two reference styles can help us find the cell by the cell address. Some functions return these two addresses through the argument settings. A1 Reference ...