Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One possible way
=IF(A1="","",IF(AND(A1=4,A1<=20),"H",IF(AND(A1=2 4,A1<=30),"H","Y"))) -- Regards, Peo Sjoblom "jai" wrote in message ... 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 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(OR(AND(A14,A1<20),AND(A124,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 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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" wrote in message ... 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I describe the current worksheet? | Excel Worksheet Functions | |||
Can Excel describe a function in two variables: y = f(x,z) | Excel Discussion (Misc queries) | |||
Advanced Question (that I really can't describe!) | Excel Worksheet Functions | |||
describe introduction to spreadsheets | New Users to Excel | |||
Describe high/low range with CountIf (ex. count if >90 and <100 | Excel Worksheet Functions |