Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
nsnjlacm
 
Posts: n/a
Default How I set up as logical test if my range has to be >=2 but <5

I tried to use the formula "IF" to find different rates, one rate is if the #
is = 2 but <5 and give me the error, please help me

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(AND(A1=2,A1<5),rate1,rate2)

or, if you have three rates:

=IF(A1<2,rateA,IF(A1<5, rateB, rateC))



In article ,
"nsnjlacm" wrote:

I tried to use the formula "IF" to find different rates, one rate is if the #
is = 2 but <5 and give me the error, please help me

  #3   Report Post  
Davie
 
Posts: n/a
Default

I'm not sure of the problem that you are getting at but if cell A1 has to be
less than 5 and greater than or equal to 2 then try

=IF(AND(A1=2,A1<5),"","OUT OF RANGE")

nsnjlacm wrote in message
...
I tried to use the formula "IF" to find different rates, one rate is if the

#
is = 2 but <5 and give me the error, please help me



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
How do I use Roundup in a logical test in excel DC Excel Worksheet Functions 3 March 9th 05 05:27 PM
=IF logical test to search only part of a cell Robbie in Houston Excel Worksheet Functions 2 March 5th 05 05:09 AM
Logical test Sooraj Excel Discussion (Misc queries) 2 January 25th 05 12:59 PM
change text color based on logical test T3nMan Excel Worksheet Functions 1 January 19th 05 04:30 PM
logical test - within a range esslingerdav Excel Worksheet Functions 4 November 17th 04 03:13 PM


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

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

About Us

"It's about Microsoft Excel"