View Single Post
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi

i think you can use VLOOKUP for this, depending on how your workbook is
actually set up
if you have on Sheet 2
...........A..................B
1.......Number......Comment
2........4................<blank
3.........5...............Standard
4........15..............<blank
5.......125...........Below Standard

then if you enter the number you want to return the comment for in cell A1
on Sheet 1 the formula would be
=VLOOKUP(A1,Sheet2!$A$2:$B$5,2)
which says, find the value in A1 in the first column of the table in the
range Sheet2!A2:B5 and return the associated value from the 2nd column.

hope this helps
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"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