I need a macro to select an item from an array based on an IS statement. The array is arranged in ascending order.
Col A Col B Col C Col D
5 1 A 1.1
10 2 C 1.5
15 3 D 2.0
20 6 F 4.0
25 9 H 6.0
30 2 K 7.0
Now my comparison number in a cell (say cell H5) is 21.2
I want to put 4.0 in cell H6.
I.e if H5 > A(x) Then H6 = D(x)
All help will be appreciated.
Col A Col B Col C Col D
5 1 A 1.1
10 2 C 1.5
15 3 D 2.0
20 6 F 4.0
25 9 H 6.0
30 2 K 7.0
Now my comparison number in a cell (say cell H5) is 21.2
I want to put 4.0 in cell H6.
I.e if H5 > A(x) Then H6 = D(x)
All help will be appreciated.