excel function search

  • Thread starter Thread starter excel novice
  • Start date Start date
E

excel novice

searching for function to give output if value "is between" limits
 
Hi excel novice,
searching for function to give output if value "is between" limits

Use IF and AND like this;
=IF(AND(value>=lowerLimit,value<=upperLimit),AnswerIfTrue,AnswerIfFalse)

eg.
This will output 100 if A1 is between 20 and 30, otherwise evaluates to zero
=IF(AND(A1>=20,A1<=30),100,0)

This will output 100 if A1 is between B1 and C1, otherwise evaluates to zero
=IF(AND(A1>=B1,A1<=C1),100,0)

Ed Ferrero
www.edferrero.com
 

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

Back
Top