IF formula

J

JerryS

I'm trying to create a formula that returns a value if a number is greater
that one value and less than another. Any suggestions? Thanks
 
B

BenjieLop

JerryS said:
I'm trying to create a formula that returns a value if a number is
greater
that one value and less than another. Any suggestions? Thanks

This generic formula should work for you.

=IF(AND(A1>ONE_NUMBER,A1<SECOND_NUMBER),\"RETURN A VALUE\",\"DO
NOTHING\")

Regards.
 
A

Anne Troy

Assuming your values are 5 and 50:
=if(and(a1>5,a1<=50),"one value","another value")
In english: If A1 is greater than 5 and less than or equal to 50...
************
Anne Troy
www.OfficeArticles.com
 
R

Ron Rosenfeld

I'm trying to create a formula that returns a value if a number is greater
that one value and less than another. Any suggestions? Thanks

look at IF, AND, OR

e.g.

=IF(AND(A1>value1,A1<value2),"Meets Criteria","")


--ron
 
Top