My first thought is that you're saying two different things.
In your statement, you're saying you want the closest value. However, in your example, you chose the smallest value larger than your target value.
1.7400 - 1.7394 = 0.0006 <-- Closest
1.7425 - 1.7400 = 0.0025
Anyway, to find the closest, no matter which direction, use the following formula (an array formula):
I put the value sought for in B1, and the array in A1:A7... but you can adjust this.
If you're trying to find the closest that is larger than the value you have, you can use the following formula:
To highlight this row (or rows), you have to put conditional formatting on the whole section (ie. A1:A7), comparing it to the cell where you have the value. (You can also use the formula directly) For example, if you put this formula in C1, you can just use conditional formatting and say "Cell Value" "is equal to" =$C$1.
Note that if you are using decimal values, you might run into precision errors.
Scott
Bookmarks