找到最大或最小的excel,与条件 [英] find max or min in excel, with conditions

查看:148
本文介绍了找到最大或最小的excel,与条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的电子表格中,我有一个列为负值和正值。我需要得到所有正值中的最小值和所有负值中的最大值。我该怎么做?

解决方案

使用数组公式。在以下示例中,您检查的值位于 A2:A10



最大负数: p>

  = MAX(IF(A2:A10 <0,A2:A10))
/ pre>

输入公式时,按 Ctrl + Shift + 输入公式将以{...}的方括号括起来。



最小值:

  = MIN(IF(A2:A10> = 0,A2:A10))

另请输入数组公式按 Ctrl + Shift + 输入


In my spreadsheet I have a column with negative and positive values. I need to get the minimum among all positive values and the maximum among all negative ones. How can I do so?

解决方案

Use array formulas. In the following examples, the values you're checking are in A2:A10.

Maximum negative:

=MAX(IF(A2:A10<0,A2:A10))

Press Ctrl+Shift+Enter when entering the formula. Formula will then appear bracketed by {...}.

Minimum positive:

=MIN(IF(A2:A10>=0,A2:A10))

Also enter as an array formula by pressing Ctrl+Shift+Enter

这篇关于找到最大或最小的excel,与条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆