Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy Excel Formula help needed: IF function 1

Status
Not open for further replies.

brose99

Technical User
Sep 30, 2005
16
US
Having a brain fart here, and figured instead of banging my head against a wall, I'd come to my trusty friends here at tek-tips.

Simple excel problem.

I am trying to write an =IF command in a cell that will correctly identify the following:

Whether a specific value in the cell
is between -6 and -15 for it to read UNDER.
And if the value is between 6 and 15, for it to read OVER.

Any other value to remain blank. Thanks in advance for your help.

brose99
 
=IF(AND(A1>=-15,A1<=-6),"UNDER",IF(AND(A1>=6,A1<=15),"OVER",""))

--Lilliabeth
 
There it is! Works like a charm. Thanks for the assist.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top