Notifications
Clear all
General Excel Questions & Answers
3
Posts
2
Users
0
Reactions
138
Views
Topic starter
[Please see attached workbook]
I would like to compare column A to NOW() [cell E2] and if A_ matches NOW(), then write value of cell $H$1 to the cell in column B_ nest to A_
Comparison to a simple time (i.e., $E$1) works but not to $E$2 [NOW()].
Is there a method to compare NOW() to a number [fixed time]?
I realize that NOW() will not auto-refresh; $H$1 is an auto updating addin which takes care of the refresh.
So, I just need to know how to compare NOW() [or similar, e.g., time()] to a fixed time.
Thanks
Using WIN10 on 64-bit PC
Microsoft® Excel® for Microsoft 365 MSO (16.0.14131.20278) 32-bit
Posted : 11/08/2021 11:50 pm
Hello James,
Just simply wrap it with the TIME function.
In cell E2: =TIME(HOUR(NOW()),MINUTE(NOW()),0)
Br,
Anders
Posted : 12/08/2021 4:23 am
Topic starter
Thanks!
Posted : 12/08/2021 5:51 am