Very often we have to input Time in the Excel worksheet for many different purposes. But we may forget to set the format or change the format from other number formats. And also, we may want to view the time in 12-Hour format with AM/PM. In this article, we will show you the simple yet effective methods to Convert Text to Time Format with AM/PM in Excel.
Download Practice Workbook
Download the following workbook to practice by yourself.
To illustrate, we are going to use a sample dataset as an example. For instance, the following dataset represents the Salesman of a company and their Entry Time in the office. The Time in Text format is already given here and we’ll show you the ways to convert them to the Time format.
3 Methods to Convert Text to Time Format with AM/PM in Excel
1. Use TEXT Function to Convert Text to Time Format with AM/PM in Excel
Excel provides many different Functions and we use them to perform numerous operations. One useful function of such kind is the TEXT function. The TEXT function transforms a value to a certain number format which is specified by the user. In our first method, we’ll use this function to change the number formats. Therefore, follow the steps below to perform the task.
- First, select cell D6.
- Then, type the formula:
Here, in the argument section, h:mm:ss denotes Hour, Minute, and Second.
- After that, press Enter.
- Finally, use the AutoFill tool for converting the rest. Hence, you’ll get your desired formatting.
Read More: How to Format Text in Excel Cell (10 Approaches)
2. Convert Text to Time Format with AM/PM in Excel with Format Cells Feature
Besides Functions, Excel also offers various useful Features. The Format Cells feature in Excel helps us to Edit the fonts, alignments, and borders, or to change the number format. In this method, we will use the Format Cells feature to Convert Text to Time Format with AM/PM in Excel. So, learn the following process to carry out the operation.
- Firstly, select the range C5:C10 which has Time in Text format.
- Subsequently, select the Number Format icon which you’ll find in the Number group under the Home tab.
- As a result, the Format Cells dialog box will pop out.
- There, under the Number tab, select Time from Category and choose the desired Time format you want.
- Then, press OK.
- In the end, you’ll get the Time in your required format with AM/PM.
Read More: Excel VBA: Format Cell as Text (3 Methods)
- How to Change Lowercase to Uppercase in Excel Without Formula
- How to Change Case in Excel without a Formula (5 Ways)
- Excel VBA: Change Font Color for Part of Text (3 Methods)
- How to Capitalize Each Word in Excel (7 Ways)
- How to Capitalize the First Letter in Excel (3 Methods)
3. Apply TIMEVALUE Function for Converting Text to Time Format with AM/PM
Moreover, we can apply the TIMEVALUE function to create a formula that converts the Text Time. The TIMEVALUE function basically transforms Time in Text format to an Excel serial number for a time that is understood by Excel. We then need to change the format. Hence, follow the below process to perform the task.
- First of all, select cell D6.
- Then, type the formula:
- Afterward, press Enter and use the AutoFill tool to complete the series.
- Now, select the range D6:D11.
- After that, select Time from the Number Formats drop-down list.
- Eventually, it’ll return the Time format with AM/PM.
Read More: How to Add Text after Number with Custom Format in Excel (4 Ways)
Henceforth, you will be able to Convert Text to Time Format with AM/PM in Excel using the above-described methods. Keep using them and let us know if you have any more ways to do the task. Don’t forget to drop comments, suggestions, or queries if you have any in the comment section below.
- How to Change Font Size of the Whole Sheet with Excel VBA
- Excel VBA Codes to Bold Text in a String (5 Examples)
- How to Write 001 in Excel (11 Effective Methods)
- Text Alignment with VBA Command Button in Excel (5 Methods)
- How to Capitalize First Letter of Each Word in Excel (4 Ways)
- How to Format Cell and Center Text with Excel VBA (5 Ways)