If you need to track exact timestamps—like when a task starts, when data was last updated, or for precise time-based calculations—Excel’s NOW() function is your go-to. Unlike TIME, which only returns hours, minutes, and seconds, NOW() also includes the date and gives you a dynamic timestamp in seconds since midnight. This is critical for logging, time-based formulas, and generating sequential time stamps. You’ll need Excel installed (Excel 2010 or later) and a basic understanding of cell references for formulas.
What You'll Need
- Microsoft Excel (2010 or newer)
- A blank or empty worksheet
- Keyboard shortcut (optional): Press
Ctrl+;to insert a timestamp in the active cell
Step-by-Step
-
Open your Excel worksheet.
Type the formula in any cell, for example
A1, using this syntax:NOW()This will display the current date and time, formatted as a timestamp (e.g., 10/15/2024 3:45:23 PM). -
Press Enter. Excel will automatically update the timestamp whenever you refresh the sheet or manually press
F9(calculation mode). -
If you want a numeric timestamp in seconds since midnight (useful for calculations), use this formula instead:**
=NOW()-DATE(2000,1,1)+INT((NOW()-DATE(2000,1,1))*86400)Explanation:** This formula translates the timestamp into a whole number of seconds since January 1, 2000. The result is dynamic, updating in real time. For a cleaner approach, create a helper column:- In a new cell (e.g., B1), enter
=NOW()and press Enter. - In the next cell (e.g., B2), use
=TIMEVALUE(TIMESTAMPVALUE(A1))(this converts the timestamp to a fractional day, then multiplies by 86400 to get seconds).
- In a new cell (e.g., B1), enter
- To format the timestamp as a whole number of seconds:** 1. Right-click the cell containing the seconds value and choose Format Cells. 2. Select General from the category list. 3. The number will appear as a raw integer (e.g., 1799248214).
Common Mistakes
-
Using
TIMEinstead ofNOW. TheTIMEfunction (e.g.,TIME(4,30,0)) only returns time, not date-based timestamps. Fix:** Always useNOW()for full dates and times. -
Forgetting to refresh the sheet. Excel formulas don’t update until you press
F9or enable automatic calculation in File > Options > Formulas. Fix:** Enable automatic calculation or manually pressF9. -
Mixing data types in formulas. If you try to subtract a date from a time (e.g.,
=NOW()-TIME(4,30,0)), Excel may return errors. Fix:** Use helper columns or consistent time formats (e.g., convert all to fractional days). -
Assuming
NOW()returns UTC time. By default, Excel uses local time. To force UTC, use=UNICHAR(65536+DATE(2000,1,1))+UNICHAR(65536+TIME(0,0,0))+TODAY()-DATE(2000,1,1)+TIME(0,0,0)or a VBA solution. Fix:** Use time zone settings (File > Options > Global Settings > Time Zone) if UTC is critical.
Tips
-
Dynamic updates for multiple cells. If you want every cell in a row to update simultaneously, use a helper column:
- In cell B1, enter
=NOW(). - Drag the fill handle (small square at bottom-right) to copy the formula down.
=INT((NOW()-DATE(2000,1,1))*86400)in a second column for numeric timestamps. - In cell B1, enter
-
Logging events with timestamps. Pair
NOW()with a helper column for notes:=IF([@Event]=TRUE, NOW(), "")This flags each row with a timestamp when the condition holds. -
Excel’s shortcut for quick timestamps. Press
Ctrl+;to insert a current timestamp in the active cell, which auto-updates when you move or edit the sheet. -
Time-based calculations. For example, track elapsed time between two events:
=IF([@Start]<[@End], TIMEVALUE(TIMESTAMPVALUE([@End])-TIMESTAMPVALUE([@Start])), "")This returns the duration in hours, minutes, and seconds.
Troubleshooting
If NOW() doesn’t update or returns incorrect values, check these steps in order:
- Restart Excel. Sometimes cached calculations cause delays. Close and reopen Excel.
- Enable automatic calculation. Go to File > Options > Formulas and select Calculation On Exit (or Manual if debugging).
-
Check cell references. If other formulas depend on
NOW(), ensure they reference the correct cell (e.g.,=B1instead of=NOW()). -
Test with a new sheet. Create a fresh worksheet and try
NOW()again. If it works, conflicts in macros or add-ins (check File > Options > Add-ins) may be the issue. -
Update Excel. Older versions (pre-2010) lack full
NOW()support. Upgrade if possible. -
Check for VBA errors. If
NOW()fails silently, run a VBA clean: 1. PressAlt+F11to open the VBA editor. 2. Delete any custom code (be cautious—this resets macros). 3. Restart Excel.
Frequently Asked Questions
Can I use NOW() for time zones?
Yes, but Excel’s NOW() defaults to the user’s local time. To convert to UTC or another time zone, use:
=UNICHAR(65536+DATE(2000,1,1))+UNICHAR(65536+TIME(0,0,0))+TODAY()-DATE(2000,1,1)+TIME(0,0,0)
For a simpler approach, set the time zone in File > Options > Global Settings > Time Zone. This ensures all timestamps use the same offset.
How do I freeze timestamps in Excel?
To lock a timestamp for reporting (e.g., a historical record), use a static date instead of NOW(). For example, reference a cell with a fixed date:
=DATE(YEAR(TODAY()), MONTH(TODAY()), 1)
This returns January 1st of the current year, which won’t update.
What’s the difference between NOW() and TODAY()?
NOW() returns the full date and time (e.g., 10/15/2024 3:45:23 PM), while TODAY() only returns the date (e.g., 10/15/2024). For time-based calculations, use NOW(); for date-only tracking, TODAY() is sufficient.
Can I use NOW() in a Power Query formula?
No, Power Query (Excel’s data transformation tool) does not support NOW() directly. Instead, use a helper column in the source sheet and transform it in Power Query:
1. Add a custom column with = [YourDate] + TIME(0,0,0).
2. Use this in Power Query formulas to work with time-based logic.
What happens if I use NOW() in a pivot table?
By default, pivot tables filter on the most recent value of dynamic fields. To ensure consistency, add a helper column in your data sheet (e.g., =IF([@Event]=TRUE, NOW(), "")) and reference that in the pivot table’s data range. This creates a static timestamp for each row.
Why is my NOW() timestamp showing the wrong date?
Check your Excel settings: 1. Go to File > Options > General. 2. Ensure the date format matches your region (e.g., MM/DD/YYYY). If you’re in a non-English locale, Excel may display dates incorrectly. 3. Verify the system clock is accurate on your computer.