arrays - 确定单个单元格中两个矩阵的最大值

标签 arrays excel matrix max array-formulas

我在 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)
这可能在单细胞中吗?

也许为了一些灵感,看看这个帖子:

https://superuser.com/questions/373588/how-do-i-calculate-the-sum-of-2-columns-using-the-max-from-each-row

最佳答案

尝试,

=MAX(INDEX((A2:A6)+(B2:B6), , ))

enter image description here

关于arrays - 确定单个单元格中两个矩阵的最大值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51630599/

相关文章:

c - 如何在标准 C 中创建一个新的 char*

python - 从 2D lat/lon 矩阵转换为 1D lat/lon 数组

matlab - Matlab/Octave 是否支持对矩阵切片的操作?

algorithm - 在大矩阵内移动正方形,找到重叠的最小数字

arrays - 弹出数组的键以计算总数

Ruby 风格提示 : Avoid eval, 并保持清晰有序

ios - 设置从数组中选择的按钮的标题 - Xcode iOS

excel - 使用 VBA 重新排列 Excel 数据

java - 根据特定单元格值划分 Excel 工作表

javascript - 如何在 Excel VBA 中传递 JavaScript 变量(Web 自动化)