From: Ron Rosenfeld on
On Thu, 25 Feb 2010 12:51:02 -0800, Shawn <Shawn(a)discussions.microsoft.com>
wrote:

>I got the following to do just what I wanted (kicks out less than 0, more
>than 24, and anything that isn't on a quarter unit).
>
>=IF(MOD(L1,0.25)<>0,FALSE,IF(L1<0,FALSE,IF(L1>24,FALSE,TRUE)))
>
>--
>Thanks
>Shawn

Glad to help Shawn.

But adding the 0-24 constraint, this is a bit shorter:

=AND(A1>=0,A1<=24,MOD(A1,0.25)=0)

--ron