我有4个游戏列,其中包含球员的名字。我想列出一个特定玩家的游戏。
A. B. C. D
Basketball Bowling Billiards Badminton
---------- ------- --------- ---------
John Paul Mark Paul
Paul Robert James Chris
Matt Wesley Brad Dexter 现在我想创建一个公式,列出保罗参加的所有比赛。提前感谢你的帮助。
发布于 2021-07-19 17:18:51
好了,这看起来不错!(但很复杂)
=arrayformula( if(mid( text(sum( ( if( lst_db=$B$10, 10^(column(lst_db)-1),0) ) ),"0000") ,columns(lst_hds)+1-COLUMN(lst_hds),1)="1",lst_hds,"") )现在,这是更容易扩大通过调整范围!当然,你可以把它转到垂直列表上。
我保留第一个公式供参考:
=FILTER(A1:D1,{countif(A3:A5,B10),countif(B3:B5,B10),countif(C3:C5,B10),COUNTIF(D3:D5,B10)})希望它能帮上忙
EDIT 2021刚刚添加了一个更简单的解决方案(实际上是两个,但非常相似)。让我们看看他们:
=arrayformula( if( mmult( {1,1,1}, arrayformula( if(A3:D5=$B$10,1,0) ) )=1,A1:D1,"")) ...or =array式( if( mmult( {1,1,1} ),array式( if(lst_db=$B$10,1,0) ) )=1,lst_hds,“”)!在列表增长时使用列表展开,并仅根据行调整{1,1,1}数组=filter(lst_hds, mmult({1,1,1}, ( if(lst_db=$B$10,1,0) ) )=1)再次根据行调整{1,1,1}https://webapps.stackexchange.com/questions/155900
复制相似问题