【发布时间】:2021-10-26 17:03:27
【问题描述】:
在 Google 表格中,有两个包含相关数据的页面。在第三页上,如何获取与 subscription_type=1 的 account 关联的所有用户 name 的列表?
- Page1(用户)包含 A(名称)和 B(帐户 ID)列。
- Page2 (accounts) 有 A (account_id) 和 B (subscription_type) 列
很遗憾,QUERY function 一次只能处理一张纸。
【问题讨论】:
-
你可以交换 S1 中的 name 和 ID 列,以便 ID 在 name 之前?如果可以,您可以在 S3 中使用
=FILTER( 'S2'!A2:B6 , 'S2'!B2:B6=1),然后执行 VLOOKUP() 从 S1 获取名称。
标签: google-sheets filter google-sheets-formula countif google-query-language