yes, but what you can do is to sort ascending the data you have before entering the formula.