如果表中存在该名称,则从另一列或行返回值。

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

If name exists in a table then return value from another column or row

问题

我想要在附表中找到每个人对应的标题和位置。基本上,我想要在绿色单元格中使用公式,以提取列E中每个名字右侧的相应位置号码和行A中的酒吧名。有什么最佳的方法吗?例如,Gab 对应 Bar 2 和位置 2,Nick 对应 Bar 4 位置 3,等等。

英文:

I want to find the corresponding header and position for each person in the attached table. Basically I would like a formula in the green cells to pull the corresponding position number to the right of each name in column E and the bar name in row A. What is the best way to do that? For example, Gab would be Bar 2 and position 2, Nick would be Bar 4 position 3, etc.

Thanks!

https://docs.google.com/spreadsheets/d/1JXYXkN8ovwcJvVWN5-kHb0-N8sFIbVIP5qwesUPLCQw/edit?usp=sharing

答案1

得分: 2

Bar

=tocol(index(if(A2:D7=A12,A1:D1,)),1)

Position

=tocol(index(if(A2:D7=A12,E2:E7,)),1)

英文:

You may try:

Bar

=tocol(index(if(A2:D7=A12,A1:D1,)),1)

Position

=tocol(index(if(A2:D7=A12,E2:E7,)),1)

如果表中存在该名称,则从另一列或行返回值。

huangapple
  • 本文由 发表于 2023年3月31日 04:29:10
  • 转载请务必保留本文链接:https://go.coder-hub.com/75892733.html
匿名

发表评论

匿名网友

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

确定