根据 google 电子表格中的特定值列出行的最高值

Listing the top value of rows based on a certain value in google spreadsheets

我有以下 excel DPS table(s) 全部列在下面:

Column A  Column B  Column C
Parse     Name      DPS
61        Arlisk    991.7
46        Tritla    913.9

Parse     Name      DPS
79        Arlisk    1156.3
87        Lucija    1090.8

我有另一个名字-table,它简单地列出了 Arlisk、Tritla 和 Lucija 的名字。 现在,我想向 name-table 添加另一列,显示在引用该行名称的所有行的其他 table 的 D 列中找到的最高值。

换句话说,新的 table 应该列出所有其他 table 中每个名字的最高 DPS。

我找到了下面的,但是公式是错误的,我对它还不够熟悉,无法进一步修正它。

=ArrayFormula(MAX(IFERROR(INDEX($C:$C9 ,SMALL(IF($B:$B9=$B ,ROW($B:$B9)-ROW($B)+1),ROWS($B:$B4))),"")))

谁能给我一些解决方案的建议?

您想在所有 table 中获得每个名称的最大 DPS 吗?

鉴于那些 table 在同一列中,那么 FILTERMAX 可以为您提供每个名称的最大 DPS。

公式:

=max(filter(C:C, B:B=E2))

输出:

您也可以使用下面的公式创建一个单独的 table。这将根据范围内可用的 table 自动列出唯一名称以及最大 DPS。

=query({B2:C}, "select Col1, max(Col2) where Col1 is not null and Col2 is not null group by Col1")

输出: