Tha*_* K. 5 excel excel-formula libreoffice libreoffice-calc
我有两列数字。我想在一个单独的单元格中计算总和。该总和将包括这两列中相应单元格的最小值。
例:
A | B
--------
[1] 1 | 2
[2] 4 | 3
[3] 0 | 1
[4] 5 | 5
Run Code Online (Sandbox Code Playgroud)
我需要一个可以在单元格中计算1 + 3 + 0 + 5的总和的公式,其中
* 1 is the MIN(A1,B1),
* 3 is the MIN(A2,B2)
* 0 is the MIN(A3,B3)
* 5 is the MIN(A4,B4)
Run Code Online (Sandbox Code Playgroud)
有可能在一个公式中(与#rows无关)吗?
目前正在使用LibreOffice Calc,但非常欢迎Excel解决方案。
您可以为此使用数组公式(适用于Libre Office和Excel的文档):
=SUM(IF(A1:A4<B1:B4, A1:A4, B1:B4))
Run Code Online (Sandbox Code Playgroud)
通过Ctrl
+ Shift
+ Enter
而不是简单的Enter进行确认。