查询中的Google电子表格功能

时间:2015-10-05 18:51:24

标签: string select indexing google-sheets

我正在尝试使用表单

的Google Spreadsheets进行查询
<endpoint 
  address="" 
  binding="netTcpBinding" 
  bindingConfiguration="customTcpBinding" 
  contract="Server.IMyService">
</endpoint>

其中 QUERY(data_tables;"select B where A='"&A30&"' "); 是某个字符串值(人名)。我想使用'"&A30&"'检索'"&A30&"'的值(INDEX(data,30)为列data的值命名范围)。有什么想法吗?

换句话说,如何在Google电子表格查询中嵌入函数调用?

谢谢!

1 个答案:

答案 0 :(得分:0)

You should be able to replace the A30 reference with the INDEX formula:

=QUERY(data_tables;"select B where A='"&INDEX(data;30)&"'")

This formula assumes that your data_tables range includes columns A & B

I'm not clear why the january!C8:AG10 part of your formula is for though - can you clarify?