Insert the current date and time in a cell (2024)

Excel

Formulas and functions

More functions

More functions

Insert the current date and time in a cell

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2013 More...Less

Let's say that you want to easily enter the current date and time while making a time log of activities. Or perhaps you want to display the current date and time automatically in a cell every time formulas are recalculated. There are several ways to insert the current date and time in a cell.

Newer Windows versionsNewer Mac versionsWeb

Insert a static date or time into an Excel cell

A static value in a worksheet is one that doesn’t change when the worksheet is recalculated or opened. When you press a key combination such as Ctrl+; to insert the current date in a cell, Excel “takes a snapshot” of the current date and then inserts the date in the cell. Because that cell’s value doesn’t change, it’s considered static.

  1. On a worksheet, select the cell into which you want to insert the current date or time.

  2. Do one of the following:

    • To insert the current date, press Ctrl+; (semi-colon).

    • To insert the current time, press Ctrl+Shift+; (semi-colon).

    • To insert the current date and time, press Ctrl+; (semi-colon), then press Space, and then press Ctrl+Shift+; (semi-colon).

Change the date or time format

To change the date or time format, right-click in a cell, and select Format Cells. Then, on the Format Cells dialog box, in the Number tab, under Category, chooseDate or Time and in the Type list, select a type, and selectOK.

Insert a static date or time into an Excel cell

A static value in a worksheet is one that doesn’t change when the worksheet is recalculated or opened. When you press a key combination such as Ctrl+; to insert the current date in a cell, Excel “takes a snapshot” of the current date and then inserts the date in the cell. Because that cell’s value doesn’t change, it’s considered static.

  1. On a worksheet, select the cell into which you want to insert the current date or time.

  2. Do one of the following:

    • To insert the current date, press Ctrl+; (semi-colon).

    • To insert the current time, press Insert the current date and time in a cell (1)+ ; (semi-colon).

    • To insert the current date and time, press Ctrl+; (semi-colon), then press Space, and then press Insert the current date and time in a cell (2)+ ; (semi-colon).

Change the date or time format

To change the date or time format, right-click in a cell, and select Format Cells. Then, on the Format Cells dialog box, in the Number tab, under Category, chooseDate or Time and in the Type list, select a type, and selectOK.

Insert a static date or time into an Excel cell

A static value in a worksheet is one that doesn’t change when the worksheet is recalculated or opened. When you press a key combination such as Ctrl+; to insert the current date in a cell, Excel “takes a snapshot” of the current date and then inserts the date in the cell. Because that cell’s value doesn’t change, it’s considered static.

  1. On a worksheet, select the cell into which you want to insert the current date or time.

  2. Do one of the following:

    • To insert the date, type the date (like 2/2), and then click Home > Number Format dropdown (in the Number tab) >Short Date or Long Date.

    • To insert the time, type the time, and then click Home > Number Format dropdown (in the Number tab) >Time.

Change the date or time format

To change the date or time format, right-click on a cell, and select Number Format. Then, on the Number Format dialog box, under Category, click Date or Time and in the Type list, select a type, and click OK.

Insert a date or time whose value is updated

A date or time that updates when the worksheet is recalculated or the workbook is opened is considered “dynamic” instead of static. In a worksheet, the most common way to return a dynamic date or time in a cell is by using a worksheet function.

To insert the current date or time so that it is updatable, use the TODAY and NOW functions, as shown in the following example. For more information about how to use these functions, see TODAY function and NOW function.

For example:

Formula

Description (Result)

=TODAY()

Current date (varies)

=NOW()

Current date and time (varies)

  1. Select the text in the table shown above, and then press Ctrl+C.

  2. In the blank worksheet, click once in cell A1, and then press Ctrl+V. If you are working in Excel for the web, repeat copying and pasting for each cell in the example.

    Important:For the example to work properly, you must paste it into cell A1 of the worksheet.

  3. To switch between viewing the results and viewing the formulas that return the results, press Ctrl+` (grave accent), or on the Formulas tab, in the Formula Auditing group, click the Show Formulas button.

After you copy the example to a blank worksheet, you can adapt it to suit your needs.

Note:The results of the TODAY and NOW functions change only when the worksheet is calculated or when a macro that contains the function is run. Cells that contain these functions are not updated continuously. The date and time that are used are taken from the computer's system clock.

Need more help?

You can always ask an expert in the Excel Tech Communityor get support inCommunities.

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Insert the current date and time in a cell (3)

Microsoft 365 subscription benefits

Insert the current date and time in a cell (4)

Microsoft 365 training

Insert the current date and time in a cell (5)

Microsoft security

Insert the current date and time in a cell (6)

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Insert the current date and time in a cell (7)

Ask the Microsoft Community

Insert the current date and time in a cell (8)

Microsoft Tech Community

Insert the current date and time in a cell (2024)

FAQs

Insert the current date and time in a cell? ›

To insert the current time, press Ctrl+Shift+; (semi-colon). To insert the current date and time, press Ctrl+; (semi-colon), then press Space, and then press Ctrl+Shift+; (semi-colon).

How can you insert the current date and time automatically? ›

Insert a date that updates automatically

On the Insert tab, in the Text group, click Date & Time. In the Date and time dialog box, select the format you want.

Which function can be used to enter current date and time in a cell? ›

When you need to show the current date and time on a worksheet, the NOW function can be used. Simply enter "=today" in the cell followed by an open and closed pair of braces "()" with no space in between to insert the current date in Excel.

How do you enter a function to display the current date and time? ›

Excel current date and time formulas (static)
  1. “Ctrl + ;” – inserts the date (Windows)
  2. “Ctrl + Shift + ;” – inserts the date and time (Windows)
  3. “COMMAND + ;” (Mac)

How do I insert current date and time in Excel quizlet? ›

On the Formulas tab, in the Function Library group, click the Date & Time button. Click TODAY. Click OK. Insert the current date and time in the selected cell.

How do I set date and time in one column in Excel? ›

Follow these steps:
  1. Select the cells you want to format.
  2. Press CTRL+1.
  3. In the Format Cells box, click the Number tab.
  4. In the Category list, click Date.
  5. Under Type, pick a date format. ...
  6. If you want to use a date format according to how another language displays dates, choose the language in Locale (location).

What is the formula for current time in Excel? ›

Example
FormulaDescription
=NOW()Returns the current date and time.
=NOW()-0.5Returns the date and time 12 hours ago (-0.5 days ago).
=NOW()+7Returns the date and time 7 days in the future.
=NOW()-2.25Returns the date and time 2 days and 6 hours ago (-2.25 days ago).

How do I insert the current date in Excel without time? ›

Tips, Tricks & Other Helpful Hints: Removing the time, date from cells in Excel
  1. Go to the cell where you wish have the date without the time (cannot be the current cell with the date). ...
  2. Type the following: =date(year(cellname),month(cellname),day(cellname)) ...
  3. Push "Enter."
  4. Copy the formula to all other necessary cells.
Dec 9, 2013

How do you insert a date in Excel that will automatically update? ›

Set one reference cell or named range equal to =NOW() or =TODAY() the value of which will auto update every time you edit a cell (i.e. every time the spreadsheet recalculates). Now set Data ribbon > Data Validation for the date entry cell, choose type list and refer to our reference cell.

Which function is used to date and time? ›

Date and time functions (reference)
FunctionDescription
NOW functionReturns the serial number of the current date and time
SECOND functionConverts a serial number to a second
TIME functionReturns the serial number of a particular time
TIMEVALUE functionConverts a time in the form of text to a serial number
21 more rows

How do you format date and time in Excel? ›

Formatting the Date/Time Column in Excel
  • Adjust the time column width so you can see the whole date and time.
  • Select the time column from row 3 down.
  • From the Format menu, click Cells.
  • Select the Custom category and then select "m/d/yyyy h:mm" as the type.
  • Add ":ss" (or ":ss.

How do you insert the current date in a cell use the now function True or false? ›

To insert the current date in a cell, use the NOW function.

How do I write the date formula in Excel? ›

You will need to change the number format (Format Cells) in order to display a proper date. For example: =DATE(C2,A2,B2) combines the year from cell C2, the month from cell A2, and the day from cell B2 and puts them into one cell as a date. The example below shows the final result in cell D2.

How do I insert a live clock in Excel? ›

How to insert time in Excel using shortcut
  1. To insert current time, press Ctrl + Shift + ;
  2. To enter current date and time, press Ctrl + ; which inserts a date, then press the Space key, and then hit Ctrl + Shift + ; to insert the current time.
Feb 3, 2023

How do I autofill dates in Excel? ›

Select the cell that contains the first date. Drag the fill handle across the adjacent cells that you want to fill with sequential dates. Select the fill handle at the lower-right corner of the cell, hold down, and drag to fill the rest of the series. Fill handles can be dragged up, down, or across a spreadsheet.

How do I insert a drop down date in Excel? ›

In the Insert Formula dialog box, click Insert Function. In the Categories list in the Insert Function dialog box, click Date and Time. In the Functions list, click now, and then click OK twice to return to the Date Picker Properties dialog box.

What is the best practice for entering dates and times in Excel? ›

The first step for entering dates and times in Excel is to remember to use slashes for dates and colons for times.

Top Articles
Latest Posts
Article information

Author: Carlyn Walter

Last Updated:

Views: 6692

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.