Google 表格、数组公式、目标匹配另一个选项卡中的任何单元格

问题描述 投票:0回答:1

目前我正在使用以下公式

=ArrayFormula({"Somethingsomething"; if(len(X2:X),if((I2:I=3315)+(I2:I=3316)+(I2:I=3336)+(I2:I=3338)+(I2:I=3357)+(I2:I=3360)+(I2:I=3488)+(I2:I=3489)+(I2:I=3374)+(I2:I=3432)+(I2:I=3451)+(I2:I=3454)+(I2:I=3460)+(I2:I=3461)+(I2:I=3462),1.5,1),)})

我想用这样的东西替换它:

=ArrayFormula({"Somethingsomething";if(len(X2:X),if(or(I2:I='othersheet'!E44:59),1.5,1),)})

但是这个公式给了我一个错误,提示“EQ 的数组参数大小不同。”

有什么想法吗?

google-sheets google-sheets-formula
1个回答
0
投票
=INDEX({"某事";
   如果(LEN(X2:X), 
     IF(COUNTIF(othersheet!E44:E59, I2:I), 1.5, 1),)})
© www.soinside.com 2019 - 2024. All rights reserved.