简体   繁体   English

Excel公式-偏移量+索引和匹配

[英]Excel Formula - Offset + Index and Match

=OFFSET(INDEX('File Location]File Name'!$A:$P, MATCH(D915,'File Location]File Name'!$A:$A,0),5),3,0)

I have the above code. 我有上面的代码。 However, when I try it, I get #VALUE! 但是,当我尝试它时,我得到#VALUE! unless I open the file that it's indexing. 除非我打开它正在建立索引的文件。 I have tried "Ctrl + Shift + Enter" on the entire formula but that doesn't work and I get an error message that says the new formula with the curly braces is incorrect when I try to insert them myself. 我已经在整个公式上尝试使用“ Ctrl + Shift + Enter”键,但此方法不起作用,并且收到一条错误消息,提示我尝试自己插入带有大括号的新公式不正确。

Is there a way to use Offset + Index, Match? 有没有一种方法可以使用偏移+索引,匹配?

尝试不使用OFFSET,只需将3添加到MATCH的Return中:

INDEX('File Location]File Name'!$A:$P, MATCH(D915,'File Location]File Name'!$A:$A,0)+3,5)

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

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