Convert Excel Time from 24-Hour to 12-Hour AM/PM Format
Question details
Display Excel time values in 12-hour format with an AM or PM indicator.

- 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.
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.
Apply a custom AM/PM format to Excel cells
Use this method when Excel recognizes the entries as dates and times.
Select the cells containing the 24-hour times or date-and-time values.
Right-click the selection and choose Format Cells.
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.
Click OK. For example, 14:30 will display as 02:30 PM.

Convert text dates and times before formatting
Use Text to Columns when a date and time are stored together as text in month/day/year order.
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. Open the workbook: Open WPS Spreadsheets and choose Open to select your workbook.
- 2. Select the time cells: Highlight the cells containing recognized dates and times.
- 3. Choose a custom format: Right-click the selection, choose Format Cells, and select Custom on the Number tab.
- 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.

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.




