View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tevuna Tevuna is offline
external usenet poster
 
Posts: 136
Default IF CELL VALUE FALLS WITHIN A RANGE OF VALUES

AND(A1=MIN(B1:B10),A1<=MAX(B1:B10)) is the condition that is either TRUE or
FALSE. Use syntax rules as for any other condition. He

=IF(AND(A1=MIN(B1:B10),A1<=MAX(B1:B10)),"true","f alse")

"Melvin Tang" wrote:

Sorry, it doesn't seem to work:

=IF(A1=AND(A1=MIN(B1:B10),A1<=MAX(B1:B10)), "true", "false")

Am I doing it wrongly?

"Tevuna" wrote:

Non array:
=AND(A1=MIN(B1:B10),A1<=MAX(B1:B10))

"Melvin Tang" wrote:

How do I create an IF function that allows me to work on a cell if the value
input falls within a range of values.

For example, =IF(A1=B1:B10,"true","false")