Formatting Issues

Convert Excel Time from 24-Hour to 12-Hour AM/PM Format

Adam DavisAdam Davis Dec 2, 2026 868 views

Question details

Display Excel time values in 12-hour format with an AM or PM indicator.

Convert Excel Time from 24-Hour to 12-Hour AM/PM Format
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains 24-hour times or dates and times that need to be displayed in 12-hour format.
Observed behavior
Recognized Excel date and time values should display with AM or PM without changing their underlying values.
Before you start

Check whether the cells contain recognized Excel dates and times or text. A custom format changes the display of recognized values but does not convert text.

Solution 1Recommended

Apply a custom AM/PM format to Excel cells

Use this method when Excel recognizes the entries as dates and times.

1
Select the cells

Select the cells containing the 24-hour times or date-and-time values.

2
Open Format Cells

Right-click the selection and choose Format Cells.

3
Enter a custom format

On the Number tab, select Custom. In the Type box, enter mm/dd/yyyy hh:mm AM/PM for a date and time, or hh:mm AM/PM for time only.

4
Apply the format

Click OK. For example, 14:30 will display as 02:30 PM.

Apply a custom AM/PM format to Excel cells
The underlying value stays the same: The custom format changes only how Excel displays a recognized date or time. If the display does not change, the entry may be stored as text.
Format times in WPS Spreadsheets

Display 12-hour AM/PM times in WPS Spreadsheets

Use a custom number format in WPS Spreadsheets to display recognized dates and times with AM or PM while keeping their underlying values unchanged.

  1. 1. Open the workbook: Open WPS Spreadsheets and choose Open to select your workbook.
  2. 2. Select the time cells: Highlight the cells containing recognized dates and times.
  3. 3. Choose a custom format: Right-click the selection, choose Format Cells, and select Custom on the Number tab.
  4. 4. Apply AM/PM: Enter mm/dd/yyyy hh:mm AM/PM for dates and times, or hh:mm AM/PM for time only, then click OK.
Display 24-hour times in a readable AM/PM formatKeep recognized date and time values unchangedOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

How do I show only the time in 12-hour format?

Select the cells, right-click and choose Format Cells > Custom, then enter hh:mm AM/PM. The date, if present, remains in the underlying value but is not displayed.

Why does the AM/PM format not change my cells?

The entries may be stored as text rather than recognized Excel date and time values. Convert the text first, for example by using Data > Text to Columns for a date and time separated by a space.

Does changing the time format alter the actual value?

No. Applying a custom number format changes the display of a recognized Excel date or time, not the underlying value used in calculations.

How can I convert a time stored as text?

If a text time is in A2, enter =TIMEVALUE(A2) in an empty cell. Then use Format Cells > Custom and apply hh:mm AM/PM to the result.