Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sorting 我想显示谷歌工作表中另一个工作表中指定代码的最新价格_Sorting_Google Sheets_Google Sheets Formula_Google Sheets Query_Gs Vlookup - Fatal编程技术网

Sorting 我想显示谷歌工作表中另一个工作表中指定代码的最新价格

Sorting 我想显示谷歌工作表中另一个工作表中指定代码的最新价格,sorting,google-sheets,google-sheets-formula,google-sheets-query,gs-vlookup,Sorting,Google Sheets,Google Sheets Formula,Google Sheets Query,Gs Vlookup,我有一张纸和这封信。我想显示我之前已经购买的代码的最新价格(在第二页“价格历史记录”中),让我们假设表顶部显示的价格是首先购买的。所以我想知道进口商品的最新价格。也许按降序显示价格会对我有所帮助。假设您在第2张中的列中有日期 试试下面的公式: 表1 C2中的公式 =IFERROR(ArrayFormula(vlookup(B2:B,sort(Sheet2!A2:C,Sheet2!A2:A,True,Sheet2!C2:C,False),2,0))) 使用: =QUERY(SORTN(SORT(

我有一张纸和这封信。我想显示我之前已经购买的代码的最新价格(在第二页“价格历史记录”中),让我们假设表顶部显示的价格是首先购买的。所以我想知道进口商品的最新价格。也许按降序显示价格会对我有所帮助。

假设您在第2张中的列中有日期

试试下面的公式:

表1 C2中的公式

=IFERROR(ArrayFormula(vlookup(B2:B,sort(Sheet2!A2:C,Sheet2!A2:A,True,Sheet2!C2:C,False),2,0)))
使用:

=QUERY(SORTN(SORT({A2:B, ROW(A2:A)}, 3, 0), 99^99, 2, 1, 1), 
 "select Col1,Col2 where Col1 is not null", 0)