简体   繁体   English

Excel数组公式,如果结果取决于行?

[英]excel array formula if result depends on row?

It seems that the result of my array formula depends on the row. 看来我的数组公式的结果取决于行。 Please see the image attached. 请参阅所附图片。 Cell C2 looks up from the value of the cell above it ( s3 ) from $A$3:$A$11 , and tries to return values in $B$3:$B$11 if matched. 单元格C2$A$3:$A$11上方的单元格( s3 )的值开始查找,并尝试返回$B$3:$B$11如果匹配)。 So are cells D3 , E4 , F5 , etc. I expect the values should be the same. 单元格D3E4F5等也是如此。我期望值应该相同。 However, I got Error in Value for C2 , D3 , and E4 , as well as M12 and N13 . 但是,我得到了C2D3E4以及M12N13 Error in Value I got FALSE in F5 , H7 , I8 , J9 , and L11 . 我在F5H7I8J9L11获得了FALSE The only 2 cells that got valid results are G6 and K10 where the cells themselves are on the same row as where s3 is found. 仅有两个获得有效结果的单元格是G6K10 ,其中单元格本身与找到s3位置在同一行。

屏幕截图

The formula in the screenshot has not been array-entered. 屏幕截图中的公式尚未输入数组。 If it had been, it would show "FALSE". 如果已经存在,它将显示“ FALSE”。 The formula does not make sense, since it returns an array, not a single value. 该公式没有意义,因为它返回一个数组,而不是单个值。 An array cannot be shown in a cell, so only the first value of the array will be returned. 数组无法显示在单元格中,因此仅返回数组的第一个值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM