Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Steph
 
Posts: n/a
Default 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?
  #2   Report Post  
Elkar
 
Posts: n/a
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
IF Statement Brent New Users to Excel 3 April 29th 05 04:24 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"