ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Now = A Cell Range Then Q (https://www.excelbanter.com/excel-worksheet-functions/8007-if-now-%3D-cell-range-then-q.html)

John

If Now = A Cell Range Then Q
 
I'm trying to write an IF formula that if NOW = a Date in a Range then, but
its not coming out at the right answer. Has it anything to do with Hours &
Minutes within NOW.

Basically I want say if the date in NOW = C12 (which is defined as16/12/04)
then "OK"


Thanks




Bob Phillips

Yes it is, use TODAY() rather than NOW().

--

HTH

RP
(remove nothere from the email address if mailing direct)


"John" wrote in message
...
I'm trying to write an IF formula that if NOW = a Date in a Range then,

but
its not coming out at the right answer. Has it anything to do with Hours &
Minutes within NOW.

Basically I want say if the date in NOW = C12 (which is defined

as16/12/04)
then "OK"


Thanks






Art

Not sure of what you've got in C12, but I assume you've entered a date such
as 12/16/04. Try int(now())=C1 -- I think this will cure the minutes and
hour problem that you suspect.

Art


All times are GMT +1. The time now is 05:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com