To enter time in Excel, type the time directly into a cell using a format like 9:30 AM or 13:30, then press Enter. Excel recognizes these as time values and lets you perform calculations like adding hours or finding durations. If you need to enter many times quickly, use the fill handle or keyboard shortcuts. This guide covers the correct formats, step-by-step entry methods, common mistakes, and fixes.
What You'll Need
- Microsoft Excel (desktop, web, or mobile app) with a blank or existing worksheet.
- Basic familiarity with selecting cells and typing in the formula bar.
- No special add-ins or settings required—time entry works out of the box.
Step-by-Step
- Select the cell where you want the time to appear. Click once on the cell, or use the arrow keys to move to it.
- Type the time using a recognized format. For example: 9:30 (Excel assumes AM), 9:30 AM, 9:30 PM, 13:30 (24-hour), or 9:30:15 AM (with seconds). Press Enter after typing.
- Check the cell's number format. If Excel doesn't recognize your entry as a time, it may treat it as text. To verify, select the cell, go to the Home tab, and look at the Number Format dropdown. It should show Time or a custom time format. If it shows General or Text, right-click the cell, choose Format Cells, select Time under the Number tab, and pick your preferred format (e.g., 1:30 PM).
- Enter multiple times quickly using the fill handle. Type the first time (e.g., 9:00 AM) in a cell, then hover over the bottom-right corner of the cell until the cursor becomes a small black plus sign. Click and drag down or across to fill a series. Excel will continue the pattern (e.g., 9:00 AM, 10:00 AM, 11:00 AM) if you hold the Ctrl key while dragging, or if you type two consecutive times first (e.g., 9:00 AM and 10:00 AM) and then drag both cells.
- Use the current time shortcut. To insert the current time as a static value, press Ctrl+Shift+: (colon) on Windows, or Cmd+Shift+: on Mac. This enters the time as a fixed value that won't update. For a live clock that updates when the sheet recalculates, use the formula
=NOW()(displays date and time) or=TODAY()(date only). To get just the time from NOW, use=MOD(NOW(),1)and format the cell as time. - Enter times in a table or list. If you need to enter a column of times, type them one by one, or copy a time and paste it into multiple cells. To paste the same time, copy the cell (Ctrl+C), select the target range, and paste (Ctrl+V).
- Use the formula bar for precise entry. If you're entering a time with seconds, type it in the formula bar (e.g., 10:15:30 AM) and press Enter. This ensures Excel parses it correctly.
Common Mistakes
- Omitting AM/PM: If you type 9:30 without AM/PM, Excel assumes it's 9:30 AM. To enter 9:30 PM, type 9:30 PM or 21:30.
- Using a comma or period: Excel expects a colon (:) between hours and minutes. Typing 9.30 will be treated as a decimal number, not a time.
- Forgetting to format the cell: If the cell is formatted as General, Excel might display a decimal (e.g., 0.3958) instead of a time. Always apply a time format after entry if needed.
- Entering times as text: If you type a leading apostrophe (') before the time, Excel treats it as text. Avoid that unless you intentionally want text.
- Using 24-hour format without understanding: 13:30 is 1:30 PM. If you type 13:30 PM, Excel will show an error or treat it as text because 13:30 is already PM.
Tips
- Set the default time format: To avoid reformatting every time, select the cells you'll use, right-click, choose Format Cells, pick Time, and select a format like 1:30 PM. Then all entries in those cells will display correctly.
- Use keyboard shortcuts for today's date and time: Press Ctrl+; (semicolon) for the current date, and Ctrl+Shift+: for the current time. These are static values.
- Calculate durations: To find the difference between two times, subtract the earlier time from the later one. For example, if A1 has 9:00 AM and B1 has 5:00 PM, use
=B1-A1and format the result as Time to get 8:00. If the result shows as a decimal or #VALUE!, ensure both cells are formatted as time. - Enter times in 15-minute increments: Type the first time, then drag the fill handle while holding the Ctrl key to increment by the step you set. If you want 15-minute steps, type 8:00 AM, then 8:15 AM, select both cells, and drag.
- Use the TIME function: For dynamic times based on numbers, use
=TIME(hour, minute, second). For example,=TIME(14,30,0)returns 2:30 PM.
Troubleshooting
If your time entry doesn't work as expected, try these fixes in order:
- Check for leading spaces or apostrophes: If the cell shows a green triangle or the time is left-aligned, it might be text. Select the cell, look at the formula bar, and remove any leading apostrophe or spaces.
- Reformat the cell: Right-click the cell, choose Format Cells, and under the Number tab, select Time. If the cell was formatted as Text, Excel won't interpret the entry as time.
- Use a 24-hour format if AM/PM is causing issues: Type 21:30 instead of 9:30 PM. Excel always recognizes 24-hour times without AM/PM.
- If the fill handle doesn't continue the series: Type two consecutive times (e.g., 8:00 AM and 8:15 AM), select both cells, and then drag the fill handle from the selection's bottom-right corner.
- If you see a decimal number: That's how Excel stores time (as a fraction of a day). Apply a time format to display it correctly. Select the cell, press Ctrl+1 (Windows) or Cmd+1 (Mac), and choose a time format.
- If the time appears as 12:00 AM: This often happens when you type a time without AM/PM and the cell is formatted to show AM/PM. For example, 9:30 becomes 9:30 AM, but if you type 21:30 and the format is h:mm AM/PM, it shows 9:30 PM. Check the format.
Frequently Asked Questions
How do I enter a time that is after 12:00 PM?
Type the time with PM, like 1:30 PM, or use 24-hour format: 13:30. Without PM, Excel treats it as AM.
Why does Excel show a decimal number when I type a time?
Excel stores times as fractions of a 24-hour day. 12:00 PM is 0.5. To display as a time, apply a time format via Format Cells.
Can I enter time in minutes only, like 90 minutes?
No, Excel expects hours and minutes. To enter 90 minutes, type 1:30 (1 hour 30 minutes) or use a formula like =TIME(0,90,0) which returns 1:30 AM (but you can format it as [h]:mm to show 1:30).
How do I subtract two times to get the duration?
Put the earlier time in one cell and the later time in another. In a third cell, use =B1-A1. Format the result as Time or Custom with [h]:mm to show hours over 24.
What if I need to enter a time with seconds?
Type the time with seconds, like 10:15:30 AM. Excel will recognize it. Ensure the cell format includes seconds, or apply a custom format like h:mm:ss AM/PM.
Can I enter time using the numeric keypad?
Yes, just type the digits and a colon. For example, type 9:30 and press Enter. The colon is on the main keyboard, not the numeric keypad, but you can use it.