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 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.

WindowsmacOSWeb

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 date and time, you need to use the formula "=NOW()". This formula will automatically display the current date and time in a cell.

Which of these functions inserts the current date and time into a cell? ›

To insert the current date and time, you need to use the formula "=NOW()". This formula will automatically display the current date and time in a cell.

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

Sometimes when we want to display the current date and time in a worksheet, we can use the NOW function. The date and time will update whenever the worksheet is recalculated or opened. To do that, we need to just insert the formula =NOW() in the cell where the current date and time should appear.

How do you write date and time in one cell? ›

Ctrl + ; shortcut inserts the today date in a cell. Ctrl + Shift + ; shortcut inserts the current time. To enter the current date and time, press Ctrl + ; then press the Space key, and then Ctrl + Shift + ;.

How do I 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 to insert date and time in cell a1? ›

To insert the current date and time in cell A1 in Excel, use the =NOW() formula, which updates dynamically, or use Ctrl + Shift + ; for the time and Ctrl + ; for the date to insert static values.

How do you insert the current date and time in a cell quizlet? ›

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

How do I insert the current date and time in Excel on my Mac? ›

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 the current date automatically? ›

How to insert the current date in Word
  1. Place your cursor in the location where you want to insert the date.
  2. Select the "Insert" tab from the top banner.
  3. Navigate to the "Text" group.
  4. Click "Date & Time."
  5. Choose the desired format of the date from the menu that appears.
  6. Press "OK" to finalize these changes.

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 you format date and time in the same cell? ›

If you'd like to see both the date and time in the cell, simply change the cell formatting as follows: Format Cells > Date, and then scroll down to the format that displays both the date and time. Note: you can also use a Custom format code if you need more specific formatting for the date and time components.

How do I insert the now function in Excel? ›

Using the NOW function in Excel
  1. Select the cell where you'd like to use NOW.
  2. Type the "=" sign.
  3. Type "NOW" and then type open-and-closed parentheses. ...
  4. The value that Excel displays updates whenever a user accesses the spreadsheet, calculated or saved.
Feb 3, 2023

How do I record date and time automatically when my cell changes? ›

On change of cell, automatically update date and time.
  1. Insert date: Ctrl + ;
  2. Insert time: Ctrl + Shift + ;
  3. Insert date and time: Ctrl + Alt + Shift + ;
Oct 11, 2023

Top Articles
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 5788

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.