【问题标题】:How to use arrayformula to indicate an occurrence in google sheets如何使用 arrayformula 来指示谷歌表格中的事件
【发布时间】:2016-01-16 07:04:29
【问题描述】:

我正在尝试编写一个 =arrayformula 来查找另一列中值的第 1 次、第 2 次、第 3 次等出现。我可以用复制所有行的公式来做到这一点,但我不想使用这种方法,我需要 arrayformula 来简单地总是更新列,因为我需要不断地插入和删除行而且我不想继续把公式抄下来。提前致谢。

Google sheet where I'm testing this.

我目前必须复制下来的示例公式..我希望这只是一个数组公式:

值 |发生

aa | =if(A3"",countif($A$3:$A3,A3),"") |结果:1

2 | =if(A4"",countif($A$3:$A4,A4),"") |结果:1

aa | =if(A5"",countif($A$3:$A5,A5),"") |结果:2

5 | =if(A6"",countif($A$3:$A6,A6),"") |结果:1

5 | =if(A7"",countif($A$3:$A7,A7),"") |结果:2

4 | =if(A8"",countif($A$3:$A8,A8),"") |结果:1

Formulas that work but have to be copied down

【问题讨论】:

标签: excel google-sheets array-formulas


【解决方案1】:

查看我使用此公式的单元格 D3:

=ArrayFormula(iferror(SORT(ROW(A3:A),SORT(ROW(A3:A),A3:A,1),1)-MATCH(A3:A,SORT(A3:A),0)-ROW()+2))

看看这是否适合你?

【讨论】:

    猜你喜欢
    • 2014-12-18
    • 2021-04-19
    • 2022-08-21
    • 2021-03-29
    • 1970-01-01
    • 2017-11-12
    • 2021-09-22
    • 2021-03-11
    • 2021-11-15
    相关资源
    最近更新 更多