Tai*_*oon 0 google-sheets google-apps-script
我正在从表单数据收集表导入数据,我想将时间戳更改为日期,以便更轻松地进行过滤。
我想要做的是能够根据我提供的日期过滤数据,例如我想过滤 2013 年 4 月 20 日到 2013 年 5 月 1 日之间的数据。目前我的时间戳采用日期时间格式,因此很难做到这一点。
有没有办法让Query(A:D,"select date(A), B, C",1)我的表只有日期而不是日期时间或
如果我设置 A1 = 4/20/2013, B1 = 5/1/2013, C1 =Query(Sheet1!A:D,"select A, B, C, D where A >= date'"""&A1&"""' and A <= date'"""&B1&"""'",1)
请帮助我达到这一点
谢谢
科哈尔
看看todate() 这里。
=Query(Sheet1!A:D,"select A, B, C, D where todate(A) >= date'" &A1& "' and todate(A) <= date'" &B1& "'",1)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10116 次 |
| 最近记录: |