简体   繁体   English

IMPORTRANGE中的VLOOKUP

[英]VLOOKUP within IMPORTRANGE

I'm trying this function on Google spreadsheet without success in order to gather in a sheet a value after a VLOOKUP: 我在Google电子表格上尝试此功能但没有成功,以便在VLOOKUP之后收集表格中的值:

=importrange("otherurl";cell("address";vlookup(value("201608"),"All_nodevice!$A$16:$C$1000",2,false)))

I get a general error. 我得到一般错误。

Does IMPORTRANGE support this kind of functionality? IMPORTRANGE是否支持这种功能?

What I need to do is to extract data from the cell of another sheet that has the value 201608 on its left. 我需要做的是从左侧的值为201608的另一张纸的单元格中提取数据。 Since IMORTRANGE wants a cell pointer such as $A$12, I thought to do these steps: 由于IMORTRANGE想要一个12美元的单元格指针,我想做这些步骤:

  1. search with a lookup the value. 用查找值搜索。
  2. convert the result in a cell pointer. 将结果转换为单元格指针。

I found the right way. 我找到了正确的方法。 May be it could be useful for someone else. 可能对其他人有用。

=VLOOKUP(201608;IMPORTRANGE("sheet url"; "All_nodevice!$A$16:$C$1000"); 2; 0)

or 要么

=query(IMPORTRANGE("sheet url";"All_nodevice!$A$16:$C$1000");"select Col2 where Col1=201608 limit 1")

Just the ID worked for me as well instead of the URL. 只是ID也适用于我,而不是URL。 I had my numbers as text, so kept getting an error at first. 我把我的数字作为文本,所以一开始就得到错误。 Silly mistake, but what you are looking up probably has to be the same kind of thing (text vs numbers). 愚蠢的错误,但你正在查找的东西可能必须是同一种东西(文本与数字)。

=vlookup(Q6,IMPORTRANGE("1m9IN4_NH717VATXWLnPgTvrKxnRHwtH8z-f38r9F3zY","Props!A1:Bb400"),38,false)

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

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