【发布时间】:2021-04-05 02:15:37
【问题描述】:
我正在尝试使用 Google 表格根据两个条件值计算前几行中出现的次数。
假设这是我的桌子:
| Row A | Row B | Row C | Row D |
|---|---|---|---|
| 1 | John | Smith | |
| 2 | Marty | Butler | |
| 3 | John | Herbert | |
| 4 | John | Smith | |
| 5 | Philip | Rand | |
| 6 | John | Smith | |
| 7 | Marty | Butler |
是否存在可以计算这些事件的公式。这个想法是,当我记录一个新名称时,如果 B 行和 C 行已经存在,它将 D 行中的值增加 1,所以我会知道它是该名称下的第 n 个条目。在我的示例中,第 D 行如下所示:
| Row A | Row B | Row C | Row D |
|---|---|---|---|
| 1 | John | Smith | 1 |
| 2 | Marty | Butler | 1 |
| 3 | John | Herbert | 1 |
| 4 | John | Smith | 2 |
| 5 | Philip | Rand | 1 |
| 6 | John | Smith | 3 |
| 7 | Marty | Butler | 2 |
【问题讨论】:
标签: google-sheets google-sheets-formula