ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF statement containing OR (https://www.excelbanter.com/excel-worksheet-functions/54190-if-statement-containing.html)

Steph

IF statement containing OR
 
I am trying to use an IF statement that contains OR however, I am not sure
how to us it. I need to have numbers that are between -10.05 and 21.55 be
true and any other numbers be false. How do I set this up using and OR
conjuction?

Elkar

IF statement containing OR
 
I think you need an "AND" rather than an "OR", since you want your number to
meet both conditions rather than just one or the other. Try this:

=IF(AND(A1-10.05,A1<21.55),"true","false")

HTH,
Elkar

"Steph" wrote:

I am trying to use an IF statement that contains OR however, I am not sure
how to us it. I need to have numbers that are between -10.05 and 21.55 be
true and any other numbers be false. How do I set this up using and OR
conjuction?


Sandy Mann

IF statement containing OR
 
=IF(OR(A1<-10.05,A122.55),FALSE,TRUE)

Homework?

--
HTH

Sandy

Replace@mailinator with @tiscali.co.uk

"Steph" wrote in message
...
I am trying to use an IF statement that contains OR however, I am not sure
how to us it. I need to have numbers that are between -10.05 and 21.55 be
true and any other numbers be false. How do I set this up using and OR
conjuction?





All times are GMT +1. The time now is 04:53 AM.

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