Example 1
NOW is later than a past date
B2 =NOW()>DATE(2024,1,1)
Result: TRUE
NOW changes with the clock, so the example tests a relationship that stays true rather than a value.
B2 =NOW()>DATE(2024,1,1) returns TRUE
Returns the current date and time as one number. It is volatile: it updates every time the workbook recalculates.
Syntax
=NOW()
All versions of Excel.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =NOW()>DATE(2024,1,1) returns TRUE
NOW returns the current date and time from your computer's clock. It takes no arguments, but the brackets are required: =NOW(). The whole-number part of the result is the date, and the fraction is the time of day. At noon the fraction is 0.5, and at 6 pm it is 0.75. Format the cell as a date and time, such as dd-mmm-yyyy hh:mm, to read it.
TODAY returns the date only. NOW returns the date and the time. For tests that work in whole days, such as overdue flags, use TODAY. Use NOW when the hour or minute matters: a log timestamp, a cut-off time, or the time elapsed since a start.
=NOW()-TODAY() returns just the time of day as a fraction, and =INT(NOW()) returns the date. The MOD(NOW(),1) form gives the same time fraction.
NOW is volatile. It recalculates whenever the workbook recalculates and whenever you open the file, but it does not tick continuously. The value refreshes when you edit a cell, press F9, or reopen the file. If you want a fixed timestamp, such as the time a row was entered, press Ctrl+Shift+; (semicolon) to type the current time, or Ctrl+; for the date. A formula can't record "when this cell was filled in" without turning on iterative calculation, which is best avoided.
Subtract an earlier timestamp to get elapsed days: =NOW()-A2. Multiply by 24 for hours (=(NOW()-A2)*24) or by 1440 for minutes. Format a plain elapsed-time result as [h]:mm, so that more than 24 hours doesn't wrap back to zero.
HOUR, MINUTE and SECOND take a timestamp apart. =HOUR(NOW()) returns the current hour from 0 to 23. YEAR, MONTH and DAY work on the date part and ignore the time.
Because every result depends on the moment you look, test with relationships rather than fixed answers: is the timestamp in the past, is the time part between 0 and 1, is the whole-number part today's date. The examples on this page do exactly that. For repeatable monthly reports, put the report date in an input cell and refer to it instead of NOW.
NOW follows the clock and time zone of the computer that opens the file.
Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =NOW()>DATE(2024,1,1)
Result: TRUE
NOW changes with the clock, so the example tests a relationship that stays true rather than a value.
B2 =NOW()>DATE(2024,1,1) returns TRUE
Example 2
B2 =INT(NOW())=TODAY()
Result: TRUE
INT strips the time, leaving the date, which is exactly what TODAY returns.
B2 =INT(NOW())=TODAY() returns TRUE
Example 3
B2 =AND(MOD(NOW(),1)>=0,MOD(NOW(),1)<1)
Result: TRUE
MOD(NOW(),1) is the time of day as a fraction of 24 hours: 0 at midnight, 0.5 at noon.
B2 =AND(MOD(NOW(),1)>=0,MOD(NOW(),1)<1) returns TRUE
Example 4
B2 =MOD(A2,1)*24
Result: 9.5
The same split works on any timestamp, whether it comes from NOW or from your data. The time part of 09:30 is 0.3958333, and multiplying by 24 gives 9.5 hours.
B2 =MOD(A2,1)*24 returns 9.5
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In B2, show TRUE if the timestamp in A2 has already happened and FALSE if it is still to come.
Answer in B2.
=NOW on its own returns #NAME?.=NOW() can't record when something happened. Use Ctrl+Shift+; for a fixed time.=NOW()=A2 is almost never TRUE, because NOW carries a time of day. Compare INT(NOW()) or use TODAY.[h]:mm, or multiply by 24 to get decimal hours.Press Ctrl+Shift+; (semicolon) in the cell for the current time, or Ctrl+; for the date. Both enter fixed values. A cell with `=NOW()` keeps updating.
Excel recalculates NOW only when the workbook recalculates: when you edit a cell, press F9, or open the file. For a live clock you would need a macro, which is outside normal formulas.
Keep `=NOW()` and format the cell as `hh:mm`. Or return the time part by itself with `=MOD(NOW(),1)` and format that as a time.
Subtract and multiply by 24: `=(NOW()-A2)*24`. For hours and minutes, subtract and format the cell as `[h]:mm`.
TODAY is the date only, a whole number. NOW is the date plus the time of day, so it has a fraction. Use TODAY for day-based tests and NOW when the hour or minute matters.
Tracks take you from the basics to modelling, one graded exercise at a time.