Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
olman
 
Posts: n/a
Default Value between 2 numbers

I want to compare a number in a cell to a min and max number. If it doesn't
fall between them it is bad if it does it is good.
Example: 2.5 is Min. 5 is Max.
Value is <2.5 or 5 is "Bad"
2.5 is "Good", 5 is "Good"
Any help is appreciated?
  #2   Report Post  
RagDyer
 
Posts: n/a
Default

One way:

=IF(OR(A1<2.5,A15),"Bad","Good")

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"olman" wrote in message
...
I want to compare a number in a cell to a min and max number. If it

doesn't
fall between them it is bad if it does it is good.
Example: 2.5 is Min. 5 is Max.
Value is <2.5 or 5 is "Bad"
2.5 is "Good", 5 is "Good"
Any help is appreciated?


  #3   Report Post  
David Biddulph
 
Posts: n/a
Default

"olman" wrote in message
...
I want to compare a number in a cell to a min and max number. If it doesn't
fall between them it is bad if it does it is good.
Example: 2.5 is Min. 5 is Max.
Value is <2.5 or 5 is "Bad"
2.5 is "Good", 5 is "Good"
Any help is appreciated?


=IF(A1<2.5,"Bad",IF(A15,"Bad","Good"))
--
David Biddulph


  #4   Report Post  
olasa
 
Posts: n/a
Default


For example, select cell C3 and write
=IF(AND(A1=2.5,A1<=5),"Good","Bad")
A1 contains the value you want to test.

Ola Sandström


=IF(AND(A1=B1,A1<=B2),"Good","Bad")
B1 is 2.5
B2 is 5.0


--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=378692

  #5   Report Post  
olman
 
Posts: n/a
Default

Thank you both!

"David Biddulph" wrote:

"olman" wrote in message
...
I want to compare a number in a cell to a min and max number. If it doesn't
fall between them it is bad if it does it is good.
Example: 2.5 is Min. 5 is Max.
Value is <2.5 or 5 is "Bad"
2.5 is "Good", 5 is "Good"
Any help is appreciated?


=IF(A1<2.5,"Bad",IF(A15,"Bad","Good"))
--
David Biddulph



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
Checking Winning Numbers in the Lottery. Ann Excel Discussion (Misc queries) 4 May 18th 05 10:55 AM
Match Last Occurrence of two numbers and Return Date Sam via OfficeKB.com Excel Worksheet Functions 6 April 5th 05 12:40 PM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM
Count and Sum Total occurrances of two specific numbers Sam via OfficeKB.com Excel Worksheet Functions 10 March 29th 05 08:13 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM


All times are GMT +1. The time now is 11:13 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"