I would like to test a number to see if it falls between Column A & B on a certain row. If it does return the number in Column C. If not drop down a row and repeat the test. The number will be somewhere inbetween A1 and B10. It is not likely to equal the number at the high or low end of any range. Sheet 1 contains the number that is know and the table to compare the range against is on sheet 2.
I can do this in Lotus using the IF <=> and the {branch \} commands. Don't know how to use the {Branch \} in Excel.
Assume Sheet 1:A1 = 23.5 ; Then the macro or formula should return 2 according to the table below.
A B C
row 1 10 20 1
row 2 21 30 2
row 3 31 40 3
Thank you.
I can do this in Lotus using the IF <=> and the {branch \} commands. Don't know how to use the {Branch \} in Excel.
Assume Sheet 1:A1 = 23.5 ; Then the macro or formula should return 2 according to the table below.
A B C
row 1 10 20 1
row 2 21 30 2
row 3 31 40 3
Thank you.