To put time into Excel, type it in a cell using a colon between hours and minutes (for example, 9:30 or 14:45), then press Enter. Excel recognises the pattern and stores it as a time value you can add, subtract and format. If you need hours and minutes with seconds, use 9:30:15. If you want to enter a duration longer than 24 hours, such as 28:00, you must first apply the [h]:mm custom format, otherwise Excel will interpret it as 4:00 AM the next day. The steps below cover entering, formatting and calculating with time, plus the fixes for the most common problems.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (the steps below apply to all; where the interface differs, it is noted).
- A blank or existing worksheet where you can type.
- Basic familiarity with selecting cells and using the ribbon or menu bar.
Step-by-Step
- Select the cell where you want the time. Click a single cell, or select a range if you are entering many times. The cell will show a thick border when selected.
- Type the time with a colon. Use the 24-hour format (14:30) or 12-hour with AM/PM (2:30 PM). Excel accepts both. Press Enter. The cell will right-align, which is Excel's signal that it recognised a number or time rather than text.
- Check the format. If the cell shows something unexpected (for example, a date instead of a time), the cell's number format may be set to General or Date. Select the cell, then on the Home tab, open the Number Format dropdown (usually showing General) and choose Time. On Excel for the web, the dropdown is also on the Home tab.
- Enter a duration longer than 24 hours. Type the total hours and minutes with a colon, such as 28:00. Before pressing Enter, or immediately after, select the cell, open Format Cells (Ctrl+1 on Windows, Cmd+1 on Mac), choose Custom, and type [h]:mm in the Type box. The square brackets tell Excel to keep counting hours past 24 instead of rolling over.
- Add or subtract times. In another cell, type a formula such as =A1+B1 to add two times, or =B1-A1 to find the difference. If the result shows as a time like 0:30, you can multiply by 24 to get decimal hours: =(B1-A1)*24.
- Enter the current time quickly. Press Ctrl+Shift+; (semicolon) on Windows or Cmd+; on Mac to insert the current time as a static value. Note that this does not update automatically; it is a snapshot.
- Format for AM/PM or 24-hour display. Select the cells, open Format Cells, choose Time, and pick the format you want from the list. The sample box shows how it will look.
- Copy the format to other cells. Use the Format Painter on the Home tab: select a correctly formatted cell, click Format Painter, then drag over the cells you want to update.
Common Mistakes
- Typing a period instead of a colon. 9.30 is read as the number 9.3, not 9:30. Always use a colon.
- Forgetting the space before AM/PM. 2:30PM may be accepted, but 2:30 PM is safer and unambiguous.
- Entering 25:00 without the [h]:mm format. Excel will display 1:00 (the next day) and your total will be wrong. Apply the custom format first.
- Assuming a time is text. If a time is left-aligned, Excel stored it as text. Re-enter it with a colon or use the TIMEVALUE function to convert.
- Adding times and expecting decimal hours. A sum of times returns a time value; multiply by 24 and format as Number to get decimal hours.
Tips
- Use Ctrl+Shift+; (Windows) or Cmd+; (Mac) for a quick static timestamp; use =NOW() for a live clock that updates when the sheet recalculates.
- To enter a time in a cell that already contains a date, type a space then the time (for example, 1/15/2025 9:00). Excel stores date and time together.
- If you type 9 in a cell formatted as Time, Excel shows 9:00. This is handy for whole hours.
- Use Ctrl+1 (Windows) or Cmd+1 (Mac) to open Format Cells quickly.
- When sharing a workbook, check that recipients' regional settings accept your time format; the colon is standard, but AM/PM vs 24-hour display can vary.
Troubleshooting
If a time appears as a date (for example, 1/0/1900), the cell format is set to Date. Select the cell, open Format Cells, and choose Time. If a time shows as a decimal like 0.395833, the format is General or Number; switch it to Time. If a duration over 24 hours shows the wrong total, apply the [h]:mm custom format. If Excel refuses to recognise your entry, check for a leading apostrophe (which forces text), extra spaces, or a period instead of a colon. If formulas return #VALUE!, one of the referenced cells is text; re-enter it as a time. If the current-time shortcut does not work, confirm you are pressing the semicolon key and not the colon, and that your keyboard layout matches the shortcut. On Excel for the web, some shortcuts differ; use the Insert > Time option if available, or type the time manually.
Frequently Asked Questions
Why does Excel show 12:00 AM when I type 24:00?
Excel treats 24:00 as the start of the next day, so it displays 12:00 AM. To show a duration of 24 hours, format the cell as [h]:mm.
How do I add 30 minutes to a time?
Use a formula like =A1+TIME(0,30,0). The TIME function takes hours, minutes and seconds, so TIME(0,30,0) is 30 minutes.
Can I enter time without a colon?
Excel expects a colon for time. Typing 930 is read as the number 930, not 9:30. You can use a formula such as =TIME(9,30,0) instead.
How do I total hours worked in a week?
Enter start and end times, subtract them (end minus start), and format the result as [h]:mm. Sum the daily results with =SUM(range). If shifts cross midnight, add 1 to the end time before subtracting, or use a formula that accounts for the overnight period.
Why does my time formula return a date?
The result cell is formatted as Date. Change the format to Time or to a custom [h]:mm format.
Does Excel for the web support custom time formats?
Yes, the Format Cells dialog in Excel for the web includes a Custom category where you can enter [h]:mm. The exact location of the dialog can vary slightly by version.