对整列执行 Google 电子表格查询 [英] Google spreadsheet query execute for entire column
问题描述
我为两个单独的 Google 电子表格尝试了 VLOOKUP 函数,但它不支持,所以我用 QUERY
找出了我需要的函数> 使用 ImportRange
函数.
I tried VLOOKUP function for two separate Google spreadsheets but it doesn't support, So I figure it out my required function with a QUERY
using a ImportRange
function.
这是:
=QUERY( ImportRange( "sheet key" , "Course Data!A2:I4" ) , "select Col2 where Col1 = '" & E2 & "' limit 1" )
这对选定的单元格执行良好,它根据当前工作表E2
单元格的值从第二个电子表格返回值.
This is execute well for selected cell, it return value from the second spreadsheet according to the value of the current sheet E2
cell.
我想要实现的是对整个列(E3、E4、E5...)运行此查询
What I want to achieve is run this query for entire column (E3, E4, E5...)
我是 Google 电子表格的新手,在互联网上看到了一些关于 ARRAYFORMULA
的内容.但我不能在这里应用它.
I am new to Google Spreadsheets and saw something on internet with ARRAYFORMULA
. But I couldn't apply it here.
推荐答案
我错了!VLOOKUP
支持两种不同的电子表格.
I was wrong !
VLOOKUP
supports for two different spreadsheets.
这工作正常:
=ARRAYFORMULA(IFERROR(Vlookup(E2:E,ImportRange( "sheets key (url in new sheets)" , "Course Data!A2:I4" ) ,2,False)))
干杯!
这篇关于对整列执行 Google 电子表格查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!