View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Comparing to a range and printing value

Try this:

With this table in the range G1:I5 -

16.5 16.74 3.1
16.75 16.99 3.07
17 17.24 3.07
17.25 17.49 3.07
17.5 17.74 3.04


A1 = 16.81

=VLOOKUP(A1,G$1:I$5,3)


--
Biff
Microsoft Excel MVP


"Alyssa M" <Alyssa wrote in message
...
Hello,

I have a column of data like this (just a sample):
16.81
17.25
16.51
17.63
17.07

Then, at a different area in the same worksheet I have three other columns
like this (again, just a sample):
16.5 16.74 3.1
16.75 16.99 3.07
17 17.24 3.07
17.25 17.49 3.07
17.5 17.74 3.04

What I want to do is take the number from the first set (i.e. 16.81),
figure
out which range it corresponds to in the second data set (16.75 - 17) and
then print the 3rd number in the second set (3.07) in the cell next to the
number in the first set. So, I'd get:

16.81 3.07
17.25 3.07
16.51 3.1
17.63 3.04
17.07 3.07

Any suggestions would be much appreciated!