Obfuscation is a grand thing. I remember when we wrote entire C programs on
one line. Let's keep it simple
Tyro
"Rick Rothstein (MVP -
VB)" wrote in
message ...
Use the AND function
=IF(AND(A1=12,A1<24),"X","") or perhaps you meant
=IF(AND(A1=12,A1<=24),"X","")
If she meant the latter one, it's possible to have a formula without even
using the AND function...
=IF(ABS(A1-18)<=6,"X","")
Rick