excel - Find minimum value in range after a maximum value -
i have data structured follows:
a1:a8 (10, 2, 11, 15, 17, 10, 4, 5)
i wish find smallest value occurs after largest value. in example above, 4 or a7
, not a2
.
i have tried use dmin
, combination of min
plus if
functions, return smallest value, not smallest after largest.
thank you!
try this:
=min(if((max(if(a1:a8=max(a1:a8),row(a1:a8)))<row(a1:a8))*a1:a8>0,a1:a8))
you need enter ctrl + shift + enter.
Comments
Post a Comment