搜索 Google 表单数据

Search through Google form data

我有一个 Google 表单输出这样的数据:

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

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 ...

另一个 sheet 称为 Bids:

Product 1 | Base Price

Product 2 | Base Price

Product 3 | Base Price

我想要实现的结果是获得不同产品的所有出价,并在每个产品旁边显示具有相应用户名的最高出价。我试过 lookupvquery 但没有成功,我不是 Google Sheets 的专家(这是委婉的说法)。

有什么想法吗?

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

以我想要获得的计算机的出价为例 sheet。 买家是 sheet 从 Google 表格自动填充的。

使用:

=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)))