PC Review


Reply
 
 
=?Utf-8?B?amFp?=
Guest
Posts: n/a
 
      24th Sep 2007
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
 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      24th Sep 2007
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 <B0AF2243-3FC2-4DB8-987E-(E-Mail Removed)>,
jai <(E-Mail Removed)> 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

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      24th Sep 2007
One possible way

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



--


Regards,


Peo Sjoblom



"jai" <(E-Mail Removed)> wrote in message
news:B0AF2243-3FC2-4DB8-987E-(E-Mail Removed)...
>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



 
Reply With Quote
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      24th Sep 2007
=IF(OR(AND(A1>=4, A1<=20), AND(A1>=24, A1<=30)), "H", "Y")
--
HTH...

Jim Thomlinson


"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

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      24th Sep 2007
A1 cannot lie between (A and B) AND between (J and K);
It must lie between one pair of number OR the other
If you do not state your problem correctly in English then you have no
chance of getting Excel to solve it.

=IF(OR(AND(A1>=4,A1<=20),AND(A1>=24,A1<=30)),"H","Y")
Please tell me what mark I get for your homework!
best wishes

--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"jai" <(E-Mail Removed)> wrote in message
news:B0AF2243-3FC2-4DB8-987E-(E-Mail Removed)...
>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



 
Reply With Quote
 
=?Utf-8?B?Q0xS?=
Guest
Posts: n/a
 
      24th Sep 2007
=IF(OR(AND(A1>4,A1<20),AND(A1>24,A1<30)),"H","Y")

Vaya con Dios,
Chuck, CABGx3



"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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm not sure how to describe this..... =?Utf-8?B?VGlh?= Microsoft Access Form Coding 3 3rd Oct 2006 07:19 PM
not sure how to describe this but... =?Utf-8?B?amFzb24gaHV0c29u?= Windows XP General 1 11th Apr 2005 05:50 AM
not sure how to describe this but... =?Utf-8?B?Ym1pbGs=?= Windows XP General 2 2nd Apr 2005 01:58 PM
Re: Hard to describe this one Dave R. Microsoft Excel Worksheet Functions 0 27th Jul 2004 10:54 PM
Not sure how to describe what I need. :) Alan D. Microsoft C# .NET 1 4th Mar 2004 10:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:36 PM.