To be clear, to convert the first array in line with your 2nd sample you would reverse the > & < operators to reflect the fact that C is now > D
Using the 2nd sample file the above would still return C4 - this is simply because:
first value > C4 = G106
first value < D4 = G514
If you were to change C4 to say 1.31 then D4 would be the result given
first value > C4 = G1951
first value < D4 = G514
The confusion really stems from your first example implying an OR based test and your 2nd example implying an AND based test - see quote below (comment in A4)
Originally Posted by
2nd Sample - A4 Comment
...the range in column G would need to be equal to or greater than D, or less than or equal to C, and tell which one, C or D is reached first.
I have assumed with the above formula that in reality you meant to persist with an OR based test (>C or <D) but simply reversed the positions of large & small.
Bookmarks