我需要在google脚本中包含和/或声明if条件.我是脚本的新手,我无法找到这样做的方法.请帮忙
if (dateval<>"") and (repval<>"") {condition if true}
Run Code Online (Sandbox Code Playgroud)
感谢您的帮助.
我正在从表单数据收集表导入数据,我想将时间戳更改为日期,以便更轻松地进行过滤。
我想要做的是能够根据我提供的日期过滤数据,例如我想过滤 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)
请帮助我达到这一点
谢谢
科哈尔