excel - How to delay a formula to be shown for a certain number of hours? -
i'm using excel 2013. in cell d5 have date of birth, in cell e5 have formula recognizes if today birthday , if is, shows yes
, if not no
. formula works great formula must not show yes
before 10 a.m.!
how can delay formula shows yes
if it's past 10am?
i'm not doing in vba because i've got task write formula! here's formula:
=if(text(d5;"d.m.")=text(today();"d.m.");"yes";"no")
please can write me delayed formula or tell me function should use delay formula?
presumably want show "yes" 10:00 until midnight on day?
you possibly use hour
function in conjunction current formula, e.g.
=if(and(text(d5;"d.m.")=text(today();"d.m.");hour(now())>=10);"yes";"no")
or perhaps simpler use datedif
current date comparison this:
=if(and(datedif(d5;today();"yd")=0;hour(now())>=10);"yes";"no")
Comments
Post a Comment