Excel Insert Time and Date: Shortcuts and Formulas
In this article
To insert the current date in Excel, press Ctrl + ; (semicolon). To insert the current time, press Ctrl + Shift + ; (semicolon). These shortcuts create static timestamps that do not change when the workbook is reopened or recalculated. If you need the date or time to update automatically every time the sheet is accessed, use the formulas =TODAY() for the date or =NOW() for both date and time.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A keyboard with a semicolon key.
- An open Excel workbook and a selected cell where the data will be placed.
Step-by-Step
Method 1: Inserting Static Date and Time (Shortcuts)
Static entries are essential for logs, invoices, or tracking when a specific action occurred. Because these are entered as values, they will never change unless you manually edit them.
- Select the cell or range of cells where you want the date or time to appear.
- For the Date: Press
Ctrland;simultaneously. Excel will immediately populate the cell with the current system date. - For the Time: Press
Ctrl,Shift, and;simultaneously. This inserts the current system time based on your computer's clock. - For Both: Press
Ctrl + ;, then press theSpacebar, and then pressCtrl + Shift + ;. This puts the date and time in a single cell separated by a space. - Press
Enterto finalize the entry.
Method 2: Inserting Dynamic Date and Time (Formulas)
Dynamic entries are used for dashboards or reports that must always show the current day. Note that these formulas recalculate every time the worksheet is changed or reopened.
- Click on the cell where you want the automatic date to appear.
- Type
=TODAY()and pressEnter. This will display the current date. It will update automatically every day. - To include the time as well, click a new cell and type
=NOW()and pressEnter. This displays the current date and the exact time of the last calculation. - If the
=NOW()formula only shows the date, you must change the cell format. Right-click the cell, select Format Cells, go to the Number tab, select Time or Custom, and choose a format that includes both date and time (e.g.,m/d/yyyy h:mm).
Method 3: Using the Fill Handle for Sequences
If you need a list of consecutive dates (like a calendar) rather than just today's date, use the AutoFill feature.
- Type a starting date in a cell (e.g., 1/1/2024).
- Hover your mouse over the bottom-right corner of the cell until the cursor turns into a small black cross (the Fill Handle).
- Click and drag the Fill Handle down or across the cells you want to fill.
- Excel will automatically increment the date by one day for each cell.
- To change the increment (e.g., to fill only weekdays or months), click the Auto Fill Options button that appears after dragging and select Fill Weekdays or Fill Months.
Method 4: Customizing the Date and Time Display
Excel stores dates as serial numbers, meaning you can change how they look without changing the actual data.
- Select the cells containing your dates or times.
- Press
Ctrl + 1to open the Format Cells dialog box. - Under the Number tab, select Date to choose from standard presets (e.g., March 14, 2012).
- For total control, select Custom. In the Type box, enter specific codes:
ddfor a two-digit day (01).dddfor a short day name (Mon).ddddfor a full day name (Monday).mmfor a two-digit month (05).mmmfor a short month name (May).mmmmfor a full month name (May).yyfor a two-digit year (24).yyyyfor a four-digit year (2024).hh:mm AM/PMfor 12-hour time.
- Click OK to apply the formatting.
Common Mistakes
One of the most frequent errors is using =TODAY() or =NOW() when a permanent record is needed. For example, if you are logging the date a customer paid an invoice, using a formula will cause that date to change to "today" every time you open the file next month. Always use the Ctrl + ; shortcut for historical records.
Another common mistake is entering dates in a format that Excel does not recognize as a date. If you type a date and it stays aligned to the left of the cell, Excel is treating it as text. Valid dates should automatically align to the right. If this happens, check your computer's regional settings to ensure you are using the correct separator (slash vs. dot) and order (MDY vs. DMY).
Users also often forget that =NOW() only updates when the workbook recalculates. If you leave a spreadsheet open on a screen for five hours, the time displayed by =NOW() will not tick forward like a digital clock; it only updates when a cell is edited or the F9 key is pressed.
Tips
To quickly update all dynamic formulas in your sheet without changing any data, press the F9 key. This forces a full recalculation of the workbook, updating every =NOW() and =TODAY() instance to the current second.
If you need to create a timestamp that updates automatically but does not change every time the sheet recalculates (a "static" dynamic timestamp), you can use a circular reference trick. Go to File > Options > Formulas and check Enable iterative calculation. You can then use a formula like =IF(A2="", NOW(), A2), which records the time the moment data is entered into cell A2 and then locks it.
For those working in large datasets, use the Ctrl + D shortcut to copy a date from the cell above into the current cell, which is often faster than re-typing or using the fill handle for small gaps.
Troubleshooting
The date appears as a number (e.g., 45321)
Excel stores dates as numbers representing the days elapsed since January 1, 1900. If you see a five-digit number, the cell is formatted as "General" or "Number." To fix this, go to the Home tab, click the number format dropdown in the Number group, and select Short Date.
Ensure that you are not in "Edit Mode" inside the cell (where the cursor is blinking). If you are editing the text of a cell, the shortcut may not trigger. Press
Esc to exit the cell, then click the cell once to select it and try the shortcut again. Also, check if other software (like a screen recorder or system utility) is overriding the Ctrl + ; combination.
The date format is wrong (Month/Day vs Day/Month)Excel follows the regional settings of your operating system. If your dates are swapping months and days, you must change your system settings. In Windows, go to Control Panel > Clock and Region > Region and adjust the Short date format. Restart Excel after making this change. The =NOW() formula shows #NAME?
This usually happens if the formula is misspelled or if you are using a version of Excel in a different language where the function name is different (e.g., in Spanish,
=NOW() is =AHORA()). Ensure the parentheses are empty and the spelling is exact.
Frequently Asked Questions
Can I insert the date and time automatically when I type in another cell?
Not with standard formulas, as =NOW() updates constantly. You can achieve this using a VBA macro (programming) or by enabling iterative calculations in the Excel options to create a self-referencing timestamp.
What is the difference between =TODAY() and =NOW()?
=TODAY() returns only the current date. =NOW() returns the current date and the current time of day.
How do I stop a date from changing every time I open the file?
You must use the shortcut Ctrl + ; instead of a formula. Formulas are volatile and recalculate; shortcuts insert a hard-coded value that remains permanent.
How can I insert the date in a specific format like "Monday, Jan 1st"?
Insert the date using any method, then press Ctrl + 1, go to Custom, and type dddd, mmm d in the Type field. Note that "st", "nd", "rd", and "th" suffixes cannot be done via standard formatting and require complex formulas.
Does the Ctrl + ; shortcut work on a Mac?
Yes, but depending on your keyboard layout, you may need to use Command + ; or Control + ;. In most modern versions of Excel for Mac, Control + ; is the standard.