View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Alyssa M Alyssa M is offline
external usenet poster
 
Posts: 1
Default Comparing to a range and printing value

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!