如何找到一行中的最大值并根据该单元格返回特定值?

huangapple go评论79阅读模式
英文:

How can I find the largest value in a row and return a certain value based on which cell it is?

问题

我想找到“PAID”列中的最大数,并根据它来确定来自哪个单元格的指示器,以找出谁拥有最多的已付记录。如果存在并列情况,我也希望列出两个指示器。我该如何操作?

英文:

如何找到一行中的最大值并根据该单元格返回特定值?

I want to find the largest number in the "PAID" column in a row and return an indicator based on which cell it comes from to find who has the highest number of paid records. I also want it to list both indicators if there is a tie. How could I go about this?

答案1

得分: 1

这是一个你可以根据特定需求进行调整的选项:

如何找到一行中的最大值并根据该单元格返回特定值?

在单元格 A9 中的公式:

=LET(y,TAKE(WRAPROWS(A1:T1,4),,1),TEXTAFTER("|"&TEXTBEFORE(BYROW(A2:T6,LAMBDA(r,LET(x,INDEX(WRAPROWS(r,4),0,3),TEXTJOIN("|",FILTER(y,x=MAX(x)))&REPT("|",ROWS(y))))),"|",SEQUENCE(,ROWS(y))),"|",-1))
英文:

Here is one option you could adapt to fit your specific needs:

如何找到一行中的最大值并根据该单元格返回特定值?

Formula in A9:

=LET(y,TAKE(WRAPROWS(A1:T1,4),,1),TEXTAFTER("|"&TEXTBEFORE(BYROW(A2:T6,LAMBDA(r,LET(x,INDEX(WRAPROWS(r,4),0,3),TEXTJOIN("|",,FILTER(y,x=MAX(x)))&REPT("|",ROWS(y))))),"|",SEQUENCE(,ROWS(y))),"|",-1))

huangapple
  • 本文由 发表于 2023年6月12日 09:56:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/76453242.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定