How to change time in Google Sheets

To change how a time displays in Google Sheets, select the cell or range containing the time, open the Format menu, choose Number, and pick a time format from the list. Google Sheets offers preset formats like 1:30:45 PM, 13:30:45, and 1:30 PM. If none of the presets match what you need, you can create a custom format using the "More formats" option at the bottom of the menu.

The steps are the same whether you're changing one cell or fifty. The format you choose affects only how the time appears on screen — the actual data stored in the cell does not change. This means you can switch between 12-hour and 24-hour time, add or remove seconds, or change the separator between hours and minutes without losing any information.

Key Takeaways

  • Select the cell or range with the time, then go to Format > Number > Time to see all available time formats.
  • Google Sheets includes common formats like 1:30 PM, 13:30, and 1:30:45 AM without requiring any setup.
  • Custom formats let you create time displays that are not in the preset list, such as adding text before or after the time.
  • Changing the format does not alter the time data itself, only how it appears in the cell.

Using Google Sheets' built-in time formats

Google Sheets comes with eight standard time formats you can apply in seconds. To access them, click on the cell or drag to select multiple cells containing times. Then click Format in the menu bar, select Number, and hover over or click Time. A submenu appears showing options like 1:30:45 PM, 1:30 PM, 13:30:45, and 13:30.

The first two formats use 12-hour time with AM or PM. The second two use 24-hour military time. If your times include seconds and you want to remove them, choose a format that shows only hours and minutes. If you need seconds displayed, pick one that includes them. Click the format you want, and it applies instantly to all selected cells.

Creating a custom time format

When the preset formats do not match your needs, use a custom format. Select your cells, go to Format > Number > More formats > Custom number format. A dialog box opens where you can type a format code. For time, the code uses h for hours, m for minutes, and s for seconds. Type hh:mm:ss for 24-hour time with seconds, or h:mm AM/PM for 12-hour time with AM or PM.

You can also add text around the time. For example, the code "Time: "h:mm AM/PM will display as "Time: 2:30 PM". Use quotes around any text you want to appear literally. If you type hh:mm:ss.000, Google Sheets will show milliseconds as well. After you enter your custom code, click Apply, and the format takes effect.

Changing time that was entered as text

Sometimes a time appears in a cell but will not format correctly because it was entered as text rather than as a time value. You can tell because the cell is left-aligned instead of right-aligned, and the Format menu shows "Text" instead of "Time" or "Number". To fix this, you need to convert the text to a time value first.

The easiest way is to use the TIMEVALUE function. In an empty cell, type =TIMEVALUE(A1) where A1 is the cell with the text time. Press Enter, and Google Sheets converts it to a time value. Then copy that cell, select the original cell, right-click, and choose Paste special > Values only. Delete the helper cell. Now the original cell contains a real time value and will format correctly.

Formatting time in a formula result

If you create a time using a formula — such as =A1+B1 to add two times together — the result may display as a decimal number instead of a time. Select the cell with the formula result, go to Format > Number > Time, and choose your preferred format. The formula stays the same; only the display changes.

You can also use the TEXT function to format a time directly within a formula. Type =TEXT(A1,"h:mm AM/PM") to display the time in A1 as 2:30 PM without needing a separate formatting step. This is useful when you want different cells to show the same time in different formats.

Changing time zones and duration displays

Google Sheets does not have a built-in time zone converter in the Format menu. If you need to display the same moment in different time zones, you must calculate the difference manually using a formula. For example, if A1 contains a time in Eastern time and you want Pacific time, use =A1-3/24 to subtract three hours.

If you are working with durations — lengths of time like "2 hours 30 minutes" rather than clock times — use the same time format codes. A duration of 2.5 hours stored as a decimal can be formatted as [h]:mm by using a custom format with brackets around the h. The brackets tell Google Sheets to display hours beyond 24 if needed, so 30 hours shows as 30:00 instead of wrapping to 6:00.

Troubleshooting time format problems

If a time still does not display correctly after formatting, check whether the cell contains a valid time value. Click the cell and look at the formula bar at the top. If you see a number like 0.604166667, that is a time stored as a decimal fraction of a day — 0.604 equals about 14.5 hours. This is correct; just apply a time format and it will display as a clock time.

If the formula bar shows text like "2:30 PM" in quotes, the cell contains text, not a time. Use TIMEVALUE to convert it as described above. If you see an error like #VALUE!, the cell contains data Google Sheets cannot interpret as a time. Check for extra spaces, unusual characters, or typos in the original entry.

Frequently Asked Questions

Can I format time to show only hours and minutes without seconds?

Yes. Select the cell, go to Format > Number > Time, and choose the format that shows only hours and minutes, such as 1:30 PM or 13:30. Both are available in the preset list without any custom setup needed.

How do I display time in 24-hour format instead of 12-hour?

Select the cell, open Format > Number > Time, and click the 24-hour format option, such as 13:30 or 13:30:45. Google Sheets applies it immediately. You can switch back to 12-hour format the same way.

What if my time shows as a decimal number instead of a clock time?

The cell contains a valid time value stored as a decimal. Select it, go to Format > Number > Time, and pick any time format. The decimal will convert to a readable time display. No data is lost in this process.

Can I add text like "Start:" before the time in a cell?

Yes, using a custom format. Go to Format > Number > More formats > Custom number format and type "Start: "h:mm AM/PM. The text in quotes appears literally before the time. Click Apply to save the custom format.

Does changing the time format change the actual data in the cell?

No. Formatting only changes how the time appears on screen. The underlying data remains the same, so you can switch between formats as many times as you need without losing information.