简体   繁体   English

Google表格中带有日期的查询功能

[英]Query function with date in Google Sheets

I'm trying to return column M when the date matches the date in column I. Any idea why it says N/A when I run the query function? 当日期与I列中的日期匹配时,我试图返回M列。我知道为什么在运行查询功能时它说N / A吗? 在此处输入图片说明

Here's the formula I'm trying to make work. 这是我要努力工作的公式。

=QUERY(A2:M1000,"select M where(I='4/8/2016')") = QUERY(A2:M1000,“选择M,其中(I ='4/8/2016')”)

尝试:

=QUERY(A2:M1000,"select M where I=date '"&text(P1,"yyyy-MM-dd")&"'")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM