确定单个单元格中两个矩阵的最大值
Determine max value of two matrices in single cell
我在 Excel 中有两个名为 Matrix1 和 Matrix2 的单列矩阵,例如:
Matrix1 Matrix 2
0 7
3 8
9 3
5 2
1 6
我想确定每行总和的最大值,我认为这可以使用数组公式实现,但我无法找到可行的解决方案。所以基本上我想做的是以下内容,但在一个单元格中:
Matrix1 Matrix2 Matrix3
0 7 =index(Matrix1;1) + index(Matrix2;1)
3 8 =index(Matrix1;2) + index(Matrix2;2)
9 3 =index(Matrix1;3) + index(Matrix2;3)
5 2 =index(Matrix1;4) + index(Matrix2;4)
1 6 =index(Matrix1;5) + index(Matrix2;5)
Result = Max(Matrix3)
在单个单元格中这可能吗?
看看这个 post:
也许会得到一些启发
试试,
=MAX(INDEX((A2:A6)+(B2:B6), , ))
我在 Excel 中有两个名为 Matrix1 和 Matrix2 的单列矩阵,例如:
Matrix1 Matrix 2
0 7
3 8
9 3
5 2
1 6
我想确定每行总和的最大值,我认为这可以使用数组公式实现,但我无法找到可行的解决方案。所以基本上我想做的是以下内容,但在一个单元格中:
Matrix1 Matrix2 Matrix3
0 7 =index(Matrix1;1) + index(Matrix2;1)
3 8 =index(Matrix1;2) + index(Matrix2;2)
9 3 =index(Matrix1;3) + index(Matrix2;3)
5 2 =index(Matrix1;4) + index(Matrix2;4)
1 6 =index(Matrix1;5) + index(Matrix2;5)
Result = Max(Matrix3)
在单个单元格中这可能吗?
看看这个 post:
也许会得到一些启发试试,
=MAX(INDEX((A2:A6)+(B2:B6), , ))