【发布时间】:2020-07-31 16:15:35
【问题描述】:
=countif('Sheet2'!$K$6,$AD25)+countif('Sheet2'!$K$13,$AD25)+countif('Sheet2'!$K$20,$AD25)
+countif('Sheet2'!$K$27,$AD25)+countif('Sheet2'!$K$34,$AD25)+countif('Sheet2'!$K$41,$AD25)
+countif('Sheet2'!$K$48,$AD25)+countif('Sheet2'!$K$55,$AD25)
这是我目前所拥有的,我想知道是否有更雄辩的方法来解决这个问题。
- 在 Sheet2 中,每 7 行,从 6 开始(即 6、13、20、27、34、41,...) 在 K 列,有一个包含项目列表的下拉列表,例如{苹果, 橙色,香蕉}。
- $AD25 代表橙色。
- 在另一张表中,我使用上面的公式计算在下拉列表中选择“橙色”的次数。如果在 $K$6 和 $K$34 中选择了橙色,则公式将返回 2。
每周,我们都会一一填写,但由于这是一个持续的过程,在我们完成第 55 行后,我需要将+countif('Sheet2'!$K$62,$AD25) 添加到公式中,这并不是很有效。
有没有更有效的方法?我想像的是
countif('Sheet2'!$K$mod(???, 7)=0,$AD25)
但实在想不通。
【问题讨论】:
标签: google-sheets filter google-sheets-formula counting google-sheets-query