简体   繁体   English

Excel - 与跳过空单元格的索引匹配

[英]Excel - index match with skipping empty cells

I can't figure out a formula according to the following excel sheet . 我无法根据以下excel表找出公式。 I match a column value with a row value and the intersecting value will show in the cell. 我将列值与行值匹配,并且交叉值将显示在单元格中。 This works with the following formula =IF(INDEX($C$3:$H$8;MATCH($K3;$B$3:$B$8;0);MATCH(L$2;$C$2:$H$2;0))=0;"";(INDEX($C$3:$H$8;MATCH($K3;$B$3:$B$8;0);MATCH(L$2;$C$2:$H$2;0)))) But I would like to move to the next match if a cell is empty (to fill in the red cells which is shown in the attached excel sheet). 这适用于以下公式=IF(INDEX($C$3:$H$8;MATCH($K3;$B$3:$B$8;0);MATCH(L$2;$C$2:$H$2;0))=0;"";(INDEX($C$3:$H$8;MATCH($K3;$B$3:$B$8;0);MATCH(L$2;$C$2:$H$2;0))))但是如果一个单元格是空的,我想移动到下一个匹配(填写附加的excel表中显示的红色单元格)。 It is an example sheet; 这是一个示例表; the original one got a lot of duplicates in the verion value. 最初的一个在verion值中有很多重复。

Looking forward to a reply! 期待回复!

Guido 圭多

得到它固定粘贴以下公式在excel表格的单元格C15 =IFERROR(INDEX(3:3;MATCH(1;INDEX(INDEX($2:$2=C$14;0)*INDEX(3:3<>"";0);0);0));"")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM