Find all numerical values corresponding to searched textual value. Excel.

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

One column has repeated textual values, other numerical values. Find all numerical values corresponding to searched textual value. Excel

问题

公式来列出与NORTH-1、NORTH-2或NORTH-3对应的所有数值。

尝试了INDEX MATCH组合,但没有任何结果。IFERROR INDEX SMALL IF ROW() ROWS()。要求是在单列中列出相应的数值。

英文:

Find all numerical values corresponding to searched textual value. Excel.

formula to list all numerical values corresponding to either NORTH-1, NORTH-2, or NORTH-3.

tried INDEX MATCH combination without any result. IFERROR INDEX SMALL IF ROW() ROWS(). The requirement is to list the corresponding numerical values in a single column.

答案1

得分: 1

匹配数据到列(透视表)

=LET(Data,A2:B21,rCol,1,aCol,2,
    dr,INDEX(Data,,rCol),da,INDEX(Data,,aCol),
    h,TOROW(SORT(UNIQUE(dr))),
    d,DROP(REDUCE("",SEQUENCE(COLUMNS(h)),LAMBDA(rr,c,
        IFERROR(HSTACK(rr,FILTER(da,dr=INDEX(h,,c))),""))),,1),
VSTACK(h,d))
英文:

Matching Data To Columns (Pivot)

Find all numerical values corresponding to searched textual value. Excel.

=LET(Data,A2:B21,rCol,1,aCol,2,
    dr,INDEX(Data,,rCol),da,INDEX(Data,,aCol),
    h,TOROW(SORT(UNIQUE(dr))),
    d,DROP(REDUCE("",SEQUENCE(COLUMNS(h)),LAMBDA(rr,c,
        IFERROR(HSTACK(rr,FILTER(da,dr=INDEX(h,,c))),""))),,1),
VSTACK(h,d))

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

发表评论

匿名网友

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

确定