IF Statements

C

Chris

How would I write an IF statement where my logical test is looking for a
range. i.e A1=91
Is it possible to write an if statement where I am looking for the range in
A1 to be a range between 90 and 100. I don't seem to be able to find
anything in microsoft help that allows you to return a value if true on a
range.
 
M

MyVeryOwnSelf

How would I write an IF statement where my logical test is looking for
a range. i.e A1=91
Is it possible to write an if statement where I am looking for the
range in A1 to be a range between 90 and 100. I don't seem to be able
to find anything in microsoft help that allows you to return a value
if true on a range.

One way:
=IF(AND(A1>90,A1<100),"in range","out of range")
 

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

Top