Examples of using NOW Function in Excel
NOW Function: A Brief
The NOW function in Excel returns the current date and time based on your computer’s system clock. The NOW function will updates every time the worksheet recalculates or when the file is opened. It can be useful for the following scenorios:
- Logging timestamps
- Tracking task updates
- Calculating durations or deadlines from the present moment.
NOW Function: A Syntax
=NOW() // Returns the current date and time from your device clock.
Objective | Value Returned by function |
---|---|
Aim to returns the date and time. | NOW Function in Excel will returns the date and time based on your device’s clock and it varies real-time, whenever the file is opened. |
NOW Function: Introduced in
The NOW function was introduced in Excel 1.0 and is a built-in function. If you want to recreate the working of the NOW function using formulas, you will need to manually combine functions as shown below.
=TODAY() + (HOUR(NOW())/24 + MINUTE(NOW())/1440)
Manual Formula to Return Current Date and Time
By combining functions like TODAY, HOUR, NOW, and MINUTE with mathematical operations, you can get the current date and time based on your system clock. However, this type of formula is static. Once it returns a result, it does not update automatically every time you reopen the file, unlike the NOW function, which refreshes with the current date and time whenever the sheet is opened or recalculated.
By default, a formula may show only the date or only the time in a cell. To display both date and time, right-click the cell and choose the Format Cells option. In the Number tab, choose Custom, then in the Type field, select the dd-mm-yyyy hh:mm, and click the OK button.
Format Cells window
Now the content in the cell will be updated with the date and time value as shown in the below image.
Formatting cells will display both date and time.
Examples of Using NOW Function with other Nested Functions:
In the example below, I’ve included 13 different scenarios showing how to use the NOW function together with other nested functions. Each case includes the formula, the output, and a brief explanation for clarity.
Using NOW Function with other Nested Functions
Example’s Explnation:
Case 1: The formula checks whether the current time is before noon or afternoon. If
HOUR(NOW())
is less than 12, it returns “Morning”; otherwise, it shows “Afternoon” as the output value.Case 2:
EOMONTH
returns the last day of the current month. By subtractingTODAY()
, the formula shows how many days are left in the month. Based on the current device’s clock, it may return 6 days remaining.Case 3: The formula
TEXT(NOW(), “hh:mm:ss”)
displays only the current time, removing the date portion and showing it in HH:MM:SS format.Case 4: It uses the
WEEKDAY
function to check if today is a weekday or weekend. If the result is 6 or 7, it returns “Weekend”; otherwise, it returns “Weekday”.Case 5: This formula calculates total hours passed since midnight using
HOUR(NOW()) + MINUTE(NOW()) / 60
. The result is shown as a decimal, such as 12.38.Case 6: It calculates how many hours are left in the day by subtracting the total passed hours from 24.
Case 7: This checks if the current time is within typical office hours (9 AM to 5 PM) using
IF
andAND
withHOUR(NOW())
. If true, it returns “Yes”.Case 8: The formula adds 15 minutes to the current time using
NOW() + TIME(0,15,0)
, useful for setting reminders or future triggers.Case 9: It subtracts 2 hours from the current time with
NOW() – TIME(2,0,0)
, showing a time 2 hours earlier.Case 10:
TEXT(NOW(), “dddd”)
returns the full name of the day, like “Thursday“, which is useful in dynamic headers or reports.Case 11:
FLOOR(NOW(), “1:00”)
rounds the current time down to the nearest hour, removing minutes and seconds.Case 12: The formula checks whether today is a Monday using
WEEKDAY(NOW(), 2)
. If the result is 1, it returns “Yes”.Case 13:
SECOND(NOW())
extracts the current second value from the time.
Function | Used for |
---|---|
NOW | Returns the current system date and time |
IF | Performs logical checks to return different values based on a condition |
HOUR | Extracts the hour portion from a time value |
MINUTE | Extracts the minute portion from a time value |
SECOND | Extracts the second portion from a time value |
TEXT | Formats numbers/dates as text in a specified format |
EOMONTH | Returns the last day of the month, x months before or after a given date |
TODAY | Returns the current date without time |
WEEKDAY | Returns a number representing the day of the week |
AND | Checks if multiple conditions are TRUE |
TIME | Creates a time value from hours, minutes, and seconds |
FLOOR | Rounds a number down toward zero to the nearest multiple |
That’s it.
Feel free to comment us below, if you have any queries about the above topic and find more interesting excel tutorials on our homepage: Excel24x7.com.