[英]What is the syntax when including standard Google Sheets functions within the QUERY function?
I would like to reference a cell in a query lookup using the LARGE function in Google Sheets. 我想在Google表格中使用LARGE函数引用查询查找中的单元格。 I have tried variations on the code below without success: 我尝试了以下代码的变体,但未成功:
=QUERY(C2:D49,"select C where D = "large(D2:D49,2)"")
This leads me to ask what the rule is for referencing cell values within queries using standard functions. 这使我想知道使用标准函数在查询中引用单元格值的规则是什么。
语法为:
=QUERY(C2:D49, "select C where D = "&LARGE(D2:D49, 2), 0)
The query string is a plain string. 查询字符串是纯字符串。 No special rules apply as long as the resulting string is a valid query. 只要结果字符串是有效查询,就没有特殊的规则适用。 Standard rules that apply to strings in spreadsheets apply to query strings too. 适用于电子表格中字符串的标准规则也适用于查询字符串。 You're looking for string concatenation in this instance: 您正在寻找这种情况下的字符串连接:
="Maximum number of players allowed: "&large(D2:D49,1)
=JOIN(" ", "Maximum number of players allowed:", large(D2:D49,1))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.