<,> formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a formula that says yes when a number is greater than
23 but less than 24 and says no when a number is less than 23 or greater than
24.
I can only figure out how to do one or the other but not both. Thank you.
 
Hi Jakefoot,
I am trying to create a formula that says yes when a number is
greater than 23 but less than 24 and says no when a number is less
than 23 or greater than
24.
I can only figure out how to do one or the other but not both. Thank
you.

=IF(AND(A1<24,A1>23),"yes","oh no")

arno
 
With those conditions then 23 or 24 wouldn't return anything?
Assume that you want greater or equal to 23 and less than or equal
24 as the first condition

=IF(AND(A1>=23,A1<=24),"Yes","No")
 
try =if(and(number>=23,number<24),"yes","no")
You might have to play with the greater than and less than criteria to get
what you want
 
Peo Sjoblom wrote...
With those conditions then 23 or 24 wouldn't return anything?
Assume that you want greater or equal to 23 and less than or equal
24 as the first condition

=IF(AND(A1>=23,A1<=24),"Yes","No")
....

Variation on the theme.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Formula 2
Excel Average dates help 0
Excel Formulas "Not Greater than" 3
Multiple logic tests 0
Formula help 0
Excel Need Countifs Formula Help 0
If, and, or conditional formulas together 4
Vlookup Help 4

Back
Top