S
Simon Lloyd
Hi all
I'm having a little trouble with this formula: (D1 is formatted =Now()
=IF(OR(D1>TIMEVALUE("07:00"),D1<TIMEVALUE("19:00")),"Days","Nights"
i also tried
=IF(OR(TEXT(D2,"hh:mm")>"07:00",TEXT(D2,"hh:mm")<"19:00"),"Days","Nights"
An
=IF(OR(D1>--"07:00",D1<--"19:00"),"Days","Nights"
But the result is always "Days", all i'm looking to check is if th
time now (time of opening the workbook or activating a sheet but that
not important) is in between 7am and 7pm, if it is display the wor
"Days" if not "Nights
--
Simon Lloy
Regards
Simon Lloy
'Microsoft Office Help' (http://www.thecodecage.com
I'm having a little trouble with this formula: (D1 is formatted =Now()
=IF(OR(D1>TIMEVALUE("07:00"),D1<TIMEVALUE("19:00")),"Days","Nights"
i also tried
=IF(OR(TEXT(D2,"hh:mm")>"07:00",TEXT(D2,"hh:mm")<"19:00"),"Days","Nights"
An
=IF(OR(D1>--"07:00",D1<--"19:00"),"Days","Nights"
But the result is always "Days", all i'm looking to check is if th
time now (time of opening the workbook or activating a sheet but that
not important) is in between 7am and 7pm, if it is display the wor
"Days" if not "Nights
--
Simon Lloy
Regards
Simon Lloy
'Microsoft Office Help' (http://www.thecodecage.com