编写vlookup以根据表上的筛选填充值的问题。

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

Issue writing vlookup for filling values based on filter for data over a table

问题

无法创建正确的VLOOKUP函数来填充附加的图像中的B8、B9、B10,这些数值应该来自表格A12:G15,根据B1中选择的筛选值。您能提供一个正确的VLOOKUP函数来解决这个问题吗?

英文:

I am unable to create a proper VLOOKUP to fill B8, B9, B10 in the image attached. which are derived from the table A12:G15, based on filter value selected in B1. could you help with a proper VLOOKUP command to solve this issue.

编写vlookup以根据表上的筛选填充值的问题。

I tried to concatenate and add multiple cells like suresh+july, Suresh+august but this inturn increases length of table which needs to be avoided for simplicity.

答案1

得分: 1

尝试使用 INDEX()MATCH()


• 单元格 B8 中使用的公式:

=INDEX($B$13:$G$15,MATCH(A8,$A$13:$A$15,0),MATCH($B$1,$B$12:$G$12,0))

或者,单元格 B8 中使用的公式:

=SUMPRODUCT(--(A8=$A$13:$A$15)*($B$1=$B$12:$G$12)*$B$13:$G$15)

或者,使用 XLOOKUP()FILTER() 函数。


=XLOOKUP($A8,$A$13:$A$15,FILTER($B$13:$G$15,$B$1=$B$12:$G$12))

或者,如果您想要使用 VLOOKUP(),那么


• 单元格 B8 中使用的公式:

=VLOOKUP($A8,$A$13:$G$15,MATCH($B$1,$A$12:$G$12,0),0)

英文:

Try using <kbd>INDEX( )</kbd> & <kbd>MATCH( )</kbd>

编写vlookup以根据表上的筛选填充值的问题。


• Formula used in cell B8

=INDEX($B$13:$G$15,MATCH(A8,$A$13:$A$15,0),MATCH($B$1,$B$12:$G$12,0))

Or, Formula used in cell B8

=SUMPRODUCT(--(A8=$A$13:$A$15)*($B$1=$B$12:$G$12)*$B$13:$G$15)

Or, Use <kbd>XLOOKUP( )</kbd> with <kbd>FILTER( )</kbd> function

编写vlookup以根据表上的筛选填充值的问题。


=XLOOKUP($A8,$A$13:$A$15,FILTER($B$13:$G$15,$B$1=$B$12:$G$12))

Or, if you want to use <kbd>VLOOKUP( )</kbd> then

编写vlookup以根据表上的筛选填充值的问题。


• Formula used in cell B8

=VLOOKUP($A8,$A$13:$G$15,MATCH($B$1,$A$12:$G$12,0),0)

答案2

得分: 0

也可以使用 FILTER

=FILTER(FILTER($B$13:$G$15,($B$12:$G$12=$B$1)),$A$13:$A$15=A8)

结果:

编写vlookup以根据表上的筛选填充值的问题。

英文:

Also possible with FILTER:

=FILTER(FILTER($B$13:$G$15,($B$12:$G$12=$B$1)),$A$13:$A$15=A8)

Result:

编写vlookup以根据表上的筛选填充值的问题。

huangapple
  • 本文由 发表于 2023年7月13日 18:41:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/76678454.html
匿名

发表评论

匿名网友

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

确定