How to Change Time Format in Excel

- Written by Puneet

excelchamps-free-courses-puneet-gogia

Excel stores time as a decimal number. (0.412) represents one hour, which is 1/24. There are two different ways to format a decimal value as a time.

  • Apply Time Format on the same cell.
  • Create a new time value in the different cells.

Change Time Format using Custom Formatting

In the following example, you have a decimal value in cell A1, and now you need to apply the time format to this cell.

change-time-format

You can use the following steps to change the time format.

time-category-under-format-cells
  1. First, use the keyboard shortcut Ctrl + 1 to open the format option.
  2. After that, click on the time option from the list.
  3. Now, at the right side of the dialog box, select the time format you want to apply.
  4. In the end, click OK to apply the format.
updated-time-format

You can use any of the formats in the list in the format option dialog box.

list-of-time-formats

Use TEXT Function to Change the Time Format

In Excel, there’s a TEXT function that you can use to change the format of time to get it in a new cell with a new format. In the following example, you have a decimal value in cell A1. To change the time format, you need to use the TEXT function. You can use the following steps:

text-function-for-time-format-change
  1. First, in cell B1, enter the text function (=TEXT).
  2. After that, refer to cell A1.
  3. Next, in the second argument, specify the time format you want to use. Here, we are using (hh:mm AM/PM).
  4. Ultimately, enter the closing parenthesis and hit enter to get the result.
=TEXT(A1,"hh:mm AM/PM")

Get the Excel File

Last Updated: June 19, 2024