简体   繁体   English

如何返回相对于VLOOKUP结果的像元OFFSET的值

[英]How to return value of cell OFFSET relative to VLOOKUP result

I am trying to build an Excel formula which finds a specific cell in a table, and retrieves the value of another cell, that is offset from the frist cell by a specific distance. 我正在尝试建立一个Excel公式,该公式可在表中找到特定的单元格,并检索另一个单元格的值,该值与第一个单元格之间的距离为特定距离。 In the table below you will see a list of languages and their associated costs. 在下表中,您将看到语言列表及其相关费用。 I am trying to create a formula whihc looks up the value of D1 in the table, and retreives the value of the cell that is 2 columns to the right and 3 rows down of that cell. 我正在尝试创建一个公式,查找表中D1的值,然后检索该单元格右边2列和该单元格下3行的值。 In this specific example, I am trying to get the total cost of German, which is 27.5. 在此特定示例中,我尝试获取德语的总费用,即27.5。

Table image 表格图片

I dont understand why this formula does not work: =OFFSET(VLOOKUP(F1, A1:C15, 3,FALSE), 3, 0) 我不明白为什么这个公式不起作用:= OFFSET(VLOOKUP(F1,A1:C15,3,FALSE),3,0)

The error message I am getting is: The formula you typed contains an error. 我收到的错误消息是:您键入的公式包含一个错误。

您可以改用Index/Match

=INDEX($C$1:$C$15,MATCH($F$1,$A$1:$A$15,0)+2)

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

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