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!

Excel 2007 IF with AND & OR

Status
Not open for further replies.

johnhugh

Technical User
Mar 24, 2010
702
SG
Hi,

I'm trying to get an IF statement working which uses AND & OR in its conditions.

I want to check whether a number is between a certain range or a specific number.
I can't work out how to combine AND & OR in the same IF statement.
Code:
=IF(AND(H11>=5811,H11<=5819,H11=5656,H11=5654),"EBITDA","ITDA")
 
That should be it.

Code:
=IF(AND(H4>=5811,H4<=5819),"ITDA",IF(OR(H4=5656,H4=5654),"ITDA","EBITDA"))
 
Or, achieving the same result as johnhugh's formula:
=IF(OR(AND(H4>=5811,H4<=5819),H4=5656,H4=5654),"ITDA","EBITDA")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top