[英]How to return highest value of a column in excel in terms of numerical number?
=IF(Max(A1:A32)>abs(MIN(A1:A32)),MAX(A1:A32),MIN(A1:A32)
Check to see if the absolute maximum is bigger than the absolute value of the minimum. 检查最大绝对值是否大于最小绝对值。 If the max is larger, stick with the larger value and perform a max calculation. 如果最大值较大,请坚持使用较大的值并执行最大值计算。 If absolute MIN is larger, then just perform a MIN calculation and you will maintain your sign. 如果MIN的绝对值较大,则只需执行MIN计算,即可保持符号。
=IF(ABS(MIN(A1:A2))>ABS(MAX(A1:A2)),MIN(A1:A2),MAX(A1:A2))
Assuming no two values are the same. 假设没有两个值相同。
-15
15
will result in 15
being displayed. 将导致显示15
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.