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 使用应用于Google工作表中子集的条件进行筛选_Sorting_Google Sheets_Filter_Google Sheets Formula_Google Sheets Query - Fatal编程技术网

Sorting 使用应用于Google工作表中子集的条件进行筛选

Sorting 使用应用于Google工作表中子集的条件进行筛选,sorting,google-sheets,filter,google-sheets-formula,google-sheets-query,Sorting,Google Sheets,Filter,Google Sheets Formula,Google Sheets Query,参见现场示例 鉴于这些数据: +-----------------+-----------+--------------------+ | extraction_date | seller_id | listings_remaining | +-----------------+-----------+--------------------+ | 2020-02-03 | 110569676 | 69 | | 2020-02-03 | 91

参见现场示例

鉴于这些数据:

+-----------------+-----------+--------------------+
| extraction_date | seller_id | listings_remaining |
+-----------------+-----------+--------------------+
| 2020-02-03      | 110569676 |                 69 |
| 2020-02-03      |  91489962 |                 10 |
| 2020-01-04      | 120000084 |                  4 |
| 2020-02-01      | 102356225 |                  3 |
| 2020-02-26      | 110569676 |                176 |
| 2020-02-26      |  91489962 |                 12 |
| 2020-02-10      | 120000084 |                  8 |
+-----------------+-----------+--------------------+
我希望每个卖家返回一行,将该行与每个卖家的最新提取日期匹配,并且仅当该卖家的最新提取日期在过去的15天以上时

'=filter(A4:C4,(match(A4,maxifs(A4:A10,B4:B10,"="&B4:B10),0))*(A4:A10<today()-15))
'=过滤器(A4:C4,(匹配(A4,最大值(A4:A10,B4:B10,=”&B4:B10),0))*(A4:A10使用:


有没有办法使用过滤器而不是查询?我会在问题中解释这是问题的一部分:
=过滤器(排序(A4:C,1,0),999^99,2,2,0),索引(排序(排序(A4:C,1,0),999^99,2,2,0),1)
=QUERY(SORTN(SORT(A4:C, 1, 0), 999^99, 2, 2, 0), 
 "where Col1 < date '"&TEXT(TODAY()-15, "yyyy-MM-dd")&"'", 0)
=FILTER(SORTN(SORT(A4:C, 1, 0), 999^99, 2, 2, 0), 
 INDEX(SORTN(SORT(A4:C, 1, 0), 999^99, 2, 2, 0),,1)<TODAY()-15)