且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将下一个匹配返回到列中的相等值

更新时间:2022-03-21 06:34:45

在B2中使用以下标准公式,

In B2 use the following standard formula,

=IFERROR(LARGE(E$2:E$8, ROW(1:1)), "")

根据需要填写

在C2中使用以下标准公式,

In C2 use the following standard formula,

=INDEX(D$2:D$8, AGGREGATE(15, 6, ROW($1:$7)/(E$2:E$8=B2), COUNTIF(B$2:B2, B2)))

根据需要填写

[可选] - 修复列A中的排名。

[Optional] - Repair the ranking in column A.

在A2中使用以下公式,

In A2 use the following formula,

=SUMPRODUCT((B$2:B$8>=B2)/(COUNTIFS(B$2:B$8, B$2:B$8&"")))

根据需要填写