Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的电子表格中,我有一列包含负值和正值。我需要得到所有正值中的最小值和所有负值中的最大值。我该怎么做?
使用数组公式。在以下示例中,您要检查的值位于A2:A10.
A2:A10
最大负数:
=MAX(IF(A2:A10<0,A2:A10))
输入公式时按Ctrl+ Shift+ 。Enter然后,公式将出现在 {...} 的括号中。
最小正数:
=MIN(IF(A2:A10>=0,A2:A10))
Ctrl也可以通过按+ Shift+作为数组公式输入Enter