Use the NOW function to insert the current date and time into a cell. It requires no arguments and updates automatically every time the workbook is recalculated. You must first have a blank Excel sheet open and a cell selected where you want the timestamp to appear. This function is volatile, meaning it changes every time you edit any cell in the workbook or press F9 to recalculate, so it is best used for tracking activity times rather than static reporting.
What You'll Need
- A computer with Microsoft Excel installed.
- A spreadsheet file (.xlsx) or a blank workbook.
- Basic knowledge of selecting cells and typing formulas.
Step-by-Step
- Open your workbook. Launch Microsoft Excel and open the file where you want to record the current date and time, or create a new blank workbook.
- Select a target cell. Click on the specific cell where you want the current date and time to appear. This is typically the top-left cell (A1) or a dedicated cell in a log or tracking table.
- Start the formula. Type an equals sign (
=) to begin entering a formula. Do not type the word NOW yet. - Enter the function. Type
now()after the equals sign. The arguments section of the formula bar should show empty parentheses(). You do not need to type any numbers or dates inside the parentheses. - Finalize the entry. Press the Enter key on your keyboard. The cell will immediately display the current system date and time formatted as a serial number by default, which looks like a long decimal number.
- Format the result. Because the default format is a serial number, you need to change it to a readable date and time. Right-click the cell containing the NOW function, select Format Cells from the context menu, and choose Date or Time. Alternatively, you can use the Number Format dropdown in the Home tab to select a more specific format like Short Date and Time.
- Verify automatic updates. To see if the function works as expected, wait a minute or two and then edit any other cell in the workbook (for example, type a number in cell B1). Press Enter. The NOW function in your target cell should update to reflect the new time, demonstrating its volatile nature.
Common Mistakes
- Forgetting the equals sign. A common error is typing
now()directly into the cell without the leading equals sign. Excel will interpret this as text rather than a function and will not calculate a value. - Entering arguments. The NOW function takes no arguments. Users sometimes try to add a date or time value inside the parentheses (e.g.,
=now(2023,1,1)). This will result in a #VALUE! error. - Expecting static data. A major misconception is that once you enter a time, it stays there. Because NOW is volatile, if you save the file and open it next week, the cell will display the time you opened the file, not the time you entered the formula. If you need a one-time snapshot, use the Ctrl + ; (semicolon) shortcut to insert the current date manually.
- Confusion with TODAY. Some users confuse NOW with the TODAY function. TODAY returns only the date, while NOW returns both the date and the time. If you only need to track which day a record was made, TODAY is often more useful and less prone to distracting time changes.
Tips
- Use a custom format for specific needs. If you want to display the date and time in a specific order (e.g., 01/01/2023 10:00 AM), go to Format Cells > Custom and enter a custom format code like
m/d/yyyy h:mm AM/PMoryyyy-mm-dd hh:mm. - Suppress the time part. If you only care about the date but are using the NOW function (perhaps because it is part of a complex formula), you can force the result to look like a date by wrapping the function in the TEXT function, like this:
=TEXT(NOW(), "yyyy-mm-dd"). This converts the serial number into text that looks exactly like a date. - Combine with logical functions. You can use NOW to create dynamic headers. For example, placing
="Report generated on " & NOW()in a cell will create a text string that displays the current date and time alongside the text. - Recalculation speed. On very large, complex workbooks, the NOW function can slow down performance because it forces Excel to recalculate every time you make a change. If you find the spreadsheet dragging, try disabling automatic calculation in the Formulas tab and only calculating manually when needed.
Troubleshooting
If the NOW function is not working as expected, follow these steps in order:
- Check for the equals sign. Ensure you started with
=. If you see#NAME?, you likely typed the function name incorrectly or missed the equals sign. - Verify the format. If the cell looks like a long decimal (e.g., 45234.567) instead of a date, you are in General format. Select the cell and change the format to Date or Time to see the readable value.
- Check system date and time. If the result is incorrect (e.g., a date from last year or a time that is an hour off), the issue is likely with your computer's system clock. Open your computer's settings and ensure the date and time are set correctly.
- Disable Compatibility Mode. If you are opening an old Excel file, it might be in Compatibility Mode, which disables some newer functions. Save the file in the modern Excel format (XLSX) to ensure all functions are available.
- Recalculate manually. Sometimes the function does not update immediately after you type it. Press F9 on your keyboard to force a recalculation of the entire worksheet. If this updates the value, the issue was simply that automatic calculation was momentarily paused.
Frequently Asked Questions
Does the NOW function update if I just open the file?
Yes. The NOW function is volatile. It updates every time the workbook is recalculated. This happens automatically when you edit any cell in the workbook or press the Enter key. If you simply open a file without editing anything, the value will remain the time you opened it.
How do I insert the current date without the time?
Use the TODAY function instead of NOW. The syntax is =TODAY(). Like NOW, it requires no arguments. It will update the date whenever the sheet recalculates, but it will not show any time information.
Why does my NOW function return a long decimal number?
This happens because Excel stores dates and times as serial numbers. The whole number represents the date, and the decimal fraction represents the time. To fix this, right-click the cell, select Format Cells, and choose Date or Time.
Can I use NOW in a conditional format?
Yes. You can use the NOW function within a conditional formatting rule to highlight cells based on time. For example, you could set a rule to highlight any cell containing a value greater than NOW, which might be useful for highlighting overdue items.
Does the NOW function work in Google Sheets?
Yes, the NOW function exists and works identically in Google Sheets. You type =NOW() into a cell, and it returns the current date and time. It also updates automatically whenever the sheet recalculates.
How do I stop the time from changing every minute?
You cannot stop the time from changing unless you use a different function. The NOW function is designed to be dynamic. If you need a static value, you must press Ctrl + ; to insert the date manually, or use the TEXT function to convert the NOW output into a text string that does not update.