Google Sheet Query按预期停止工作

时间:2016-06-20 01:45:11

标签: google-sheets

我让下面的公式在前一天工作得很漂亮....它会给我发现的前两个结果,它们会在另一个单元格中。我不得不重置表单响应目标,但实际上重新创建它。在昨晚更改之后,他们开始以不同的格式显示,其中在1个单元格中显示多个名称,而不是在第一个单元格/行中显示1个名称,然后在下一个单元格/行中显示第二个名称。

"=IFERROR(QUERY('1ON1FORM'!$O$3:$AX, "select AX where O contains date """&text(B17,"yyyy-mm-dd")&""" and O contains timeofday """&text(C17,"HH:mm:ss")&""" or P contains date """&text(B17,"yyyy-mm-dd")&""" and P contains timeofday """&text(C17,"HH:mm:ss")&""" or Q contains date """&text(B17,"yyyy-mm-dd")&""" and Q contains timeofday """&text(C17,"HH:mm:ss")&""" or R contains date """&text(B17,"yyyy-mm-dd")&""" and R contains timeofday """&text(C17,"HH:mm:ss")&""" or S contains date """&text(B17,"yyyy-mm-dd")&""" and S contains timeofday """&text(C17,"HH:mm:ss")&""" or T contains date """&text(B17,"yyyy-mm-dd")&""" and T contains timeofday """&text(C17,"HH:mm:ss")&""" or U contains date """&text(B17,"yyyy-mm-dd")&""" and U contains timeofday """&text(C17,"HH:mm:ss")&""" or V contains date """&text(B17,"yyyy-mm-dd")&""" and V contains timeofday """&text(C17,"HH:mm:ss")&""" or W contains date """&text(B17,"yyyy-mm-dd")&""" and W contains timeofday """&text(C17,"HH:mm:ss")&""" or X contains date """&text(B17,"yyyy-mm-dd")&""" and X contains timeofday """&text(C17,"HH:mm:ss")&""" or Y contains date """&text(B17,"yyyy-mm-dd")&""" and Y contains timeofday """&text(C17,"HH:mm:ss")&""" or Z contains date """&text(B17,"yyyy-mm-dd")&""" and Z contains timeofday """&text(C17,"HH:mm:ss")&""" or AA contains date """&text(B17,"yyyy-mm-dd")&""" and AA contains timeofday """&text(C17,"HH:mm:ss")&""" or AB contains date """&text(B17,"yyyy-mm-dd")&""" and AB contains timeofday """&text(C17,"HH:mm:ss")&""" or AC contains date """&text(B17,"yyyy-mm-dd")&""" and AC contains timeofday """&text(C17,"HH:mm:ss")&""" or AD contains date """&text(B17,"yyyy-mm-dd")&""" and AD contains timeofday """&text(C17,"HH:mm:ss")&""" or AE contains date """&text(B17,"yyyy-mm-dd")&""" and AE contains timeofday """&text(C17,"HH:mm:ss")&""" or AF contains date """&text(B17,"yyyy-mm-dd")&""" and AF contains timeofday """&text(C17,"HH:mm:ss")&""" or AG contains date """&text(B17,"yyyy-mm-dd")&""" and AG contains timeofday """&text(C17,"HH:mm:ss")&""" or AH contains date """&text(B17,"yyyy-mm-dd")&""" and AH contains timeofday """&text(C17,"HH:mm:ss")&"""limit 2"),"")"

我需要公式才能显示前两个。什么可以改变它的显示方式?

注意......我知道这是一个非常长的公式,并且会欣赏任何关于如何减少它或以某种方式将其包含在脚本中的建议,但是在我设法使其工作之后我放弃了。

1 个答案:

答案 0 :(得分:0)

全部谢谢

在此处找到解决方案https://productforums.google.com/forum/#!topic/docs/6XNpHLGOOpw

现在一切都很美好。

0的魔力:)

快乐的日子!