Unable to parse query string for Function QUERY parameter 2: Invalid date literal [$C6]. Date literals should be of form yyyy-MM-dd

huangapple go评论89阅读模式
英文:

Unable to parse query string for Function QUERY parameter 2: Invalid date literal [$C6]. Date literals should be of form yyyy-MM-dd

问题

你好,问题出在哪里

无法解析函数QUERY参数2的查询字符串:无效的日期文本[Sheet2!C6]。日期文本应该是yyyy-MM-dd的形式。

=QUERY(Sheet1!A2:P, "select count(M) where B=date 'Sheet2!C6' ")

我尝试创建日期过滤器

我不知道为什么参数"Sheet2!C6"不起作用!!?

英文:

Hello where is the problem

Unable to parse query string for Function QUERY parameter 2: Invalid date literal [Sheet2!C6]. Date literals should be of form yyyy-MM-dd.

=QUERY(Sheet1!A2:P, "select count(M) where B=date 'Sheet2!C6' ")

i'm try to create filtre date

I don't why is param "Sheet2!C6" not working !!??

答案1

得分: 1

*You may try:*

=query(Sheet1!A2:P, "select count(M) where B=date'"&text(Sheet2!C6,"yyyy-mm-dd")&"'")

**OR**

=counta(ifna(filter(Sheet1!M2:M,Sheet1!B2:B=Sheet2!C6)))
英文:

<!-- language-all: js -->

You may try:

=query(Sheet1!A2:P, &quot;select count(M) where B=date&#39;&quot;&amp;text(Sheet2!C6,&quot;yyyy-mm-dd&quot;)&amp;&quot;&#39;&quot;)

OR

=counta(ifna(filter(Sheet1!M2:M,Sheet1!B2:B=Sheet2!C6)))

huangapple
  • 本文由 发表于 2023年7月28日 05:26:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76783494.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定