Thread: Describe
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Describe

One way:

=IF(OR(AND(A1=4,A1<=20),AND(A1=24,A1<=30)),"H"," Y")

I assumed that by "between" you mean to include the endpoints of the
range. Otherwise, use rather than = and < rather than <=.


In article ,
jai wrote:

I want to write a formula in which I want write that if any cell say A1=
between 4 to 20 and 24 to 30 then display "H" otherwise "Y". How should I
write.
Any shortcut would be grately obliged.

Thanks

Jai