首页 > 解决方案 > 通过 Google 表单数据搜索

问题描述

我有一个输出如下数据的 Google 表单:

买家表格的行示例(对于填写表格的每个买家):

Timestamp | User 1 | Product 1 | Price 1 | Product 2 | Price 2 | Product 3 | Price 3 ...

Timestamp | User 2 | Product 1 | Price 1 | Product 2 | Price 2 | Product 3 | Price 3 ...

在另一张名为Bids的工作表上:

Product 1 | Base Price

Product 2 | Base Price

Product 3 | Base Price

我想要达到的结果是获得不同产品的所有出价,并在每个产品旁边显示具有相应用户名的最高出价。我已经尝试过lookupvquery没有成功,我不完全是谷歌表格的专家(这是一种委婉说法)。

有任何想法吗?

这是实际工作表的副本: https ://docs.google.com/spreadsheets/d/1bW_MlogHpXQk-_DZupE22No7KwUyZesqggsEdQaXPgw/edit?usp=sharing

以我想要获得的计算机投标表上的示例为例。买家是从 Google 表单自动填充的表格。

标签: google-sheetsfiltergoogle-sheets-formulavlookuparray-formulas

解决方案


利用:

=ARRAYFORMULA(IFNA(VLOOKUP(A2:A, SORT(SPLIT(QUERY(FLATTEN(IF(
 FILTER(Buyers!C2:1000, MOD(COLUMN(Buyers!C1:1)-1, 2)=0)<>"", 
 FILTER(Buyers!C2:1000, MOD(COLUMN(Buyers!C1:1)-1, 2)=0)&"×"&
 FILTER(Buyers!C2:1000, MOD(COLUMN(Buyers!C1:1), 2)=0)&"×"&Buyers!B2:B1000, )), 
 "where Col1 is not null"), "×"), 2, 0), {2, 3}, 0)))

在此处输入图像描述


推荐阅读