[英]Get Multiple Match Values Vertically From a Horizontal Table?
I came across this formula which works well with tables which have data listed vertically, however, I am having difficulty trying to apply this to a horizontal set of data. 我遇到了这个公式,该公式适用于垂直列出数据的表,但是,我很难将其应用于水平数据集。
I tried changing the ranges etc. without any success and hope someone can help out. 我尝试更改范围等,但没有成功,希望有人能帮忙。
Here's the formula: 公式如下:
{=IF(ISERROR(INDEX($A$1:$B$8,SMALL(IF($A$1:$A$8=$I$5,ROW($A$1:$A$8)),
ROW(1:1)),2)),"",INDEX($A$1:$B$8,SMALL(IF($A$1:$A$8=$I$5,ROW($A$1:$A$8)),
ROW(1:1)),2))}
The website where I found this is here: 我在这里找到此网站:
I would like to get this to work with the 我想让它与
Thanks for your help! 谢谢你的帮助!
Cheers, 干杯,
Francis 弗朗西斯
Stands to reason that changing A1:A8 to A1:H1 (rows of data into columns of data) means you also have to change the INDEX range and ROW($A$1:$A$8). 有理由将A1:A8更改为A1:H1(将数据行转换为数据列)意味着您还必须更改INDEX范围和ROW($ A $ 1:$ A $ 8)。
=IFERROR(INDEX($A$1:$H$2, 2, SMALL(IF($A$1:$H$1=$I$5, COLUMN($A:$H)), ROW(1:1))),"")
The newer IFERROR reduces the code and redundant calculation. 较新的IFERROR减少了代码和冗余计算。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.