Returns the maximum value among cells specified by a given set of conditions or criteria