NOW function: Description, Usage, Syntax, Examples and Explanation
What is NOW function in Excel?
NOW function is one of Date and Time functions in Microsoft Excel that returns the serial number of the current date and time. If the cell format was General before the function was entered, Excel changes the cell format so that it matches the date and time format of your regional settings. You can change the date and time format for the cell by using the commands in the Number group of the Home tab on the Ribbon.
The NOW function is useful when you need to display the current date and time on a worksheet or calculate a value based on the current date and time, and have that value updated each time you open the worksheet.
Note: If the NOW function does not update cell values when you expect it to, you might need to change settings that control when the workbook or worksheet recalculates. These settings can be changed in Control Panel for the Excel desktop application.
Syntax of NOW function
NOW()
The NOW function syntax has no arguments.
NOW formula explanation
- Excel stores dates as sequential serial numbers so that they can be used in calculations. By default, January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900.
- Numbers to the right of the decimal point in the serial number represent the time; numbers to the left represent the date. For example, the serial number 0.5 represents the time 12:00 noon.
- The results of the NOW function change only when the worksheet is calculated or when a macro that contains the function is run. It is not updated continuously.
Example of NOW function
Steps to follow:
1. Open a new Excel worksheet.
2. Copy data in the following table below and paste it in cell A1
Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.
You can adjust the column widths to see all the data, if need be.
Formula | Description | Result |
=NOW() | Returns the current date and time. | 11/6/2011 19:03 |
=NOW()-0.5 | Returns the date and time 12 hours ago (-0.5 days ago). | 11/6/2011 7:03 |
=NOW()+7 | Returns the date and time 7 days in the future. | 11/13/2011 19:03 |
=NOW()-2.25 | Returns the date and time 2 days and 6 hours ago (-2.25 days ago). | 11/4/2011 13:03 |