首页 文章

如何使用arrayformula指示google工作表中的事件

提问于
浏览
0

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

Google sheet where I'm testing this.

我目前要复制的示例公式..我希望这只是一个arrayformula:

值|次数

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

1 回答

  • 0

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

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

    看看这对你有用吗?

相关问题