Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CRICKETERRY
 
Posts: n/a
Default Can you use two inequalities with the IF function ie IF 10

In EXCEL I know you can use the IF function with one inequality eg IF E98
THEN....But can you make it do two inequalities at once eg if E9 is between
100 and 200 THEN... Any help much appreciated
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Can you use two inequalities with the IF function ie IF 10

Yes, you can use two inequalities with the IF function in Excel.

To check if a value in cell E5 is between 10 and 20, you can use the following formula:
  1. =IF(AND(E510,E5<20),"Value is between 10 and 20","Value is not between 10 and 20")

Here, we have used the AND function to check if both inequalities are true. If both are true, then the IF function returns "Value is between 10 and 20", otherwise it returns "Value is not between 10 and 20".

Similarly, to check if a value in cell E9 is between 100 and 200, you can use the following formula:
  1. =IF(AND(E9100,E9<200),"Value is between 100 and 200","Value is not between 100 and 200")

Again, we have used the AND function to check if both inequalities are true. If both are true, then the IF function returns "Value is between 100 and 200", otherwise it returns "Value is not between 100 and 200".
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Hari Prasadh
 
Posts: n/a
Default

Hi,

One way

=IF((E9100)*(E9<200),TRUE,FALSE)

You can use And, OR statement within IF.

Thanks a lot,
Hari
India

"CRICKETERRY" wrote in message
...
In EXCEL I know you can use the IF function with one inequality eg IF E98
THEN....But can you make it do two inequalities at once eg if E9 is
between
100 and 200 THEN... Any help much appreciated



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(AND(E9=100,E9<=200), True,False)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"CRICKETERRY" wrote in message
...
In EXCEL I know you can use the IF function with one inequality eg IF E98
THEN....But can you make it do two inequalities at once eg if E9 is

between
100 and 200 THEN... Any help much appreciated



  #5   Report Post  
Cricketerry
 
Posts: n/a
Default

Many thanks for taking the time to reply- I'm still learning! Terry Sealey

"Hari Prasadh" wrote:

Hi,

One way

=IF((E9100)*(E9<200),TRUE,FALSE)

You can use And, OR statement within IF.

Thanks a lot,
Hari
India

"CRICKETERRY" wrote in message
...
In EXCEL I know you can use the IF function with one inequality eg IF E98
THEN....But can you make it do two inequalities at once eg if E9 is
between
100 and 200 THEN... Any help much appreciated






  #6   Report Post  
Cricketerry
 
Posts: n/a
Default

Many thanks for your reply. A great help. Terry Sealey

"Bob Phillips" wrote:

=IF(AND(E9=100,E9<=200), True,False)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"CRICKETERRY" wrote in message
...
In EXCEL I know you can use the IF function with one inequality eg IF E98
THEN....But can you make it do two inequalities at once eg if E9 is

between
100 and 200 THEN... Any help much appreciated




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
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM


All times are GMT +1. The time now is 09:55 AM.

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

About Us

"It's about Microsoft Excel"