Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
<代码>=INDEX(D2:F6,SUMPRODUCT((A2:A6<=A9)*(B2:B6>=A9)*(C2:C6=A10)*ROW(A2:A6))-ROW(A1) ,MATCH(A11,D1:F1,0))
其中 SUMPRODUCT 计算满足条件的行号min、max 和 x 减去标题行的行号以确保正确索引。Match 计算用于索引的列。
SUMPRODUCT
min
max
x
Match
=INDEX(D2:F6,SUMPRODUCT((A2:A6<=A9)*(B2:B6>=A9)*(C2:C6=A10)*ROW(A2:A6))-ROW(A1),MATCH(A11,D1:F1,0))
Where SUMPRODUCT calculates the row number meeting conditions for min, max and x minus the row number of the header row for correct indexing.Match calculates the column for indexing.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
<代码>=INDEX(D2:F6,SUMPRODUCT((A2:A6<=A9)*(B2:B6>=A9)*(C2:C6=A10)*ROW(A2:A6))-ROW(A1) ,MATCH(A11,D1:F1,0))
其中
SUMPRODUCT
计算满足条件的行号min
、max
和x
减去标题行的行号以确保正确索引。Match
计算用于索引的列。=INDEX(D2:F6,SUMPRODUCT((A2:A6<=A9)*(B2:B6>=A9)*(C2:C6=A10)*ROW(A2:A6))-ROW(A1),MATCH(A11,D1:F1,0))
Where
SUMPRODUCT
calculates the row number meeting conditions formin
,max
andx
minus the row number of the header row for correct indexing.Match
calculates the column for indexing.