ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How I set up as logical test if my range has to be >=2 but <5 (https://www.excelbanter.com/excel-discussion-misc-queries/24846-how-i-set-up-logical-test-if-my-range-has-%3E%3D2-but-%3C5.html)

nsnjlacm

How I set up as logical test if my range has to be >=2 but <5
 
I tried to use the formula "IF" to find different rates, one rate is if the #
is = 2 but <5 and give me the error, please help me


JE McGimpsey

One way:

=IF(AND(A1=2,A1<5),rate1,rate2)

or, if you have three rates:

=IF(A1<2,rateA,IF(A1<5, rateB, rateC))



In article ,
"nsnjlacm" wrote:

I tried to use the formula "IF" to find different rates, one rate is if the #
is = 2 but <5 and give me the error, please help me


Davie

I'm not sure of the problem that you are getting at but if cell A1 has to be
less than 5 and greater than or equal to 2 then try

=IF(AND(A1=2,A1<5),"","OUT OF RANGE")

nsnjlacm wrote in message
...
I tried to use the formula "IF" to find different rates, one rate is if the

#
is = 2 but <5 and give me the error, please help me





All times are GMT +1. The time now is 11:22 PM.

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