Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/silverlight/4.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
Arrays 查询返回D列中的值,但不能有两个值写入;G";在B栏中,如何继续?_Arrays_Google Sheets_Array Formulas_Google Sheets Query_Gs Vlookup - Fatal编程技术网

Arrays 查询返回D列中的值,但不能有两个值写入;G";在B栏中,如何继续?

Arrays 查询返回D列中的值,但不能有两个值写入;G";在B栏中,如何继续?,arrays,google-sheets,array-formulas,google-sheets-query,gs-vlookup,Arrays,Google Sheets,Array Formulas,Google Sheets Query,Gs Vlookup,在这一页上(状态)是疑问,在问题中说: =QUERY(D4:H, "select D order by H desc limit 11", 0) 本页(姓名和位置)上已经有球员的id和位置: 一般来说,一支球队只能有一名守门员,所以在定义11名球员时,我需要提出疑问,以了解如果其中有超过1名守门员(G),则列表下方的守门员需要离开以添加。查询创建的列表上的下一个播放机 试试: =ARRAYFORMULA(QUERY({SORT({D4:D, H4:H}, 2, 0), IF

在这一页上(状态)是疑问,在问题中说:

=QUERY(D4:H, "select D order by H desc limit 11", 0)

本页(姓名和位置)上已经有球员的id和位置:

一般来说,一支球队只能有一名守门员,所以在定义11名球员时,我需要提出疑问,以了解如果其中有超过1名守门员(G),则列表下方的守门员需要离开以添加。查询创建的列表上的下一个播放机

试试:

=ARRAYFORMULA(QUERY({SORT({D4:D, H4:H}, 2, 0), 
       IF(IFERROR(VLOOKUP(INDEX(SORT({D4:D, H4:H}, 2, 0),,1), 'Name And Position'!A4:B, 2, 0))="G", 
 COUNTIFS(IFERROR(VLOOKUP(INDEX(SORT({D4:D, H4:H}, 2, 0),,1), 'Name And Position'!A4:B, 2, 0)), 
          IFERROR(VLOOKUP(INDEX(SORT({D4:D, H4:H}, 2, 0),,1), 'Name And Position'!A4:B, 2, 0)), 
          ROW(K4:K), "<="&ROW(K4:K)), 1)}, 
 "select Col1 where Col3 = 1 order by Col2 desc limit 11", 0))
=ARRAYFORMULA(查询({SORT({D4:D,H4:H},2,0),
如果(IFERROR(VLOOKUP(索引(排序({D4:D,H4:H},2,0),,1),'Name And Position'!A4:B,2,0))=G,
COUNTIFS(IFERROR(VLOOKUP(索引(排序({D4:D,H4:H},2,0),,1),'Name And Position'!A4:B,2,0)),
IFERROR(VLOOKUP(索引(排序({D4:D,H4:H},2,0),,1),'Name And Position'!A4:B,2,0)),
世界其他地区(K4:K),”