ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   excel function search (https://www.excelbanter.com/new-users-excel/254935-excel-function-search.html)

Excel novice

excel function search
 
searching for function to give output if value "is between" limits

Ed Ferrero[_3_]

excel function search
 
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),Answe rIfTrue,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



All times are GMT +1. The time now is 03:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com