NOW function

NOW() function

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Return the serial number of the current date and time

=NOW()


Return the serial number of the current date and time. Dates and time are stored as serial numbers in Excel (e.g. 44599.2795165509 = 6:42:30 AM on 7th February, 2022). Numbers to the left of the decimal point in the serial number represent the date; numbers to the right the time.

The serial number will update automatically (or manually by pressing F9) when a worksheet is calculated or when a macro that contains the function is run. If you only need the date, use the TODAY() function.

NOW syntax requires no arguments. Calculate related days and times by adding or subtracting numbers to/from the NOW() function.


NOW with numbers.

In the examples below, the NOW function is used to calculate related dates and times.

Use the NOW function to return the serial number of the current date and time.

Use the NOW function to return the serial number of the current date and time.

Syntax

NOW()

The NOW function does not require any arguments:

Try it now!

  • Enter your formulas into the grey cells.

Scope

NOW can be inserted into calculations to calculate related dates and times.

  • Now:
 =NOW() || result is the current date and time
  • Now + 0.5:
 =NOW()+0.5 || result is date and time in 12 hours time
  • Now - 365 days:
 =NOW()-365 || result is date and time 1 year ago
  • Now + 72 hours:
 =NOW()+(72/24) || result is date and time in 72 hours (3 days) time
  • Current hour:
 =HOUR(NOW()) || result is the hour number for the current date and time

Caveats

  • Excel changes the cell format to the Date & Time format of your regional settings if the cell format was previously General. To view the serial number behind the date, change the cell format back to General or Number.
  • To edit the Date and Time format, open the Number Format dialog box (Home tab > Number or keyboard shortcut ALT H FM), click on Custom and scroll down to find the appropriate format or create your own, e.g. dd/mm/yy h:mm:ss AM/PM.

    Edit Date and Time formats from the Number Format dialog box

    Edit Date and Time formats from the Number Format dialog box
  • If the NOW function does not update the date, check the File settings that control when the workbook or worksheet recalculates. Click File > Options > Formulas > Calculation options (or keyboard shortcut ALT F T). Ensure Automatic is selected.

    Click File > Options > Formulas > to edit Calculation options

    Manage the File settings that control when the workbook or worksheet recalculates
  • Use the YEAR, MONTH, DAY functions to extract the relevant component from the current date.
  • Use the HOUR, MINUTE, SECOND functions to extract the relevant component from the current time.
  • To insert a static time into a worksheet, enter CTRL + SHIFT + :

Related Functions


Functions Category

 


Register (for free!) or Login to access bonus materials

About xlsnippets

Learn how to master functions, charts, pivot tables and more using Excel for Microsoft Office 365. Simple instructions and embedded spreadsheets help you practise the basics.

Latest Updates

26 March 2022
26 March 2022
26 March 2022
25 March 2022
22 March 2022

Coming soon

xlsnippets.com is currently in beta version. More functions and bonus content for registered users will be added weekly. Detailed training courses with additional downloadable resources are also on the horizon!