View Single Post
  #4   Report Post  
CLR
 
Posts: n/a
Default

Set up three ranges, named FirstRange, SecondRange, and ThirdRange, then put
your value to be "compared" in A1 and put this formula in B1.........

=IF(AND(ISNA(VLOOKUP(A1,FirstRange,2,FALSE)),ISNA( VLOOKUP(A1,SecondRange,2,F
ALSE)),ISNA(VLOOKUP(A1,ThirdRange,2,FALSE))),"Not in
Ranges",IF(AND(ISNA(VLOOKUP(A1,FirstRange,2,FALSE) ),ISNA(VLOOKUP(A1,SecondRa
nge,2,FALSE))),VLOOKUP(A1,ThirdRange,2,FALSE),IF(I SNA(VLOOKUP(A1,FirstRange,
2,FALSE)),VLOOKUP(A1,SecondRange,2,FALSE),VLOOKUP( A1,FirstRange,2,FALSE))))

Note, all on one line, watch out for email word-wrap.........

Vaya con Dios,
Chuck, CABGx3

"Genie Bohn" wrote in message
.. .
Is this possible?

I want to compare a number against 3 ranges and display a comment for the
range it fits into.

Example.

Let's say the number is 6

<4 - would display no comment

between 5 and 15 - would display the comments "standard"

15 would display no comment.


This is only one line of comparison. Moving down the worksheet the next
example might look like this.

Let's say the number is 147

<80 - would display no comment

between 81 and 125 - would display no comment

125 would display the comment "below standard"


I am very new at vlookup and no nothing of nested functions.

Any help would be graciously accepted. TIA