Google表格:查询功能无法复制数据

我附加了一个示例Google表格数据(Link)。Google表格:查询功能无法复制数据

它包含2张。 Response工作表包含Google表单的回复。由于Google表单有很多重复问题,因此我必须使用Query函数(表Transformed单元格B2)转换数据。查询命令是

=QUERY(

{

Response!E2:H,Response!B2:D;

Response!I2:L,Response!B2:D;

Response!M2:P,Response!B2:D;

Response!Q2:T,Response!B2:D;

Response!U2:X,Response!B2:D;

Response!Z2:AC,Response!B2:D;

Response!AD2:AG,Response!B2:D;

Response!AH2:AK,Response!B2:D;

Response!AL2:AO,Response!B2:D;

Response!AP2:AS,Response!B2:D;

Response!AU2:AX,Response!B2:D;

Response!AY2:BB,Response!B2:D;

Response!BC2:BF,Response!B2:D;

Response!BG2:BJ,Response!B2:D;

Response!BK2:BN,Response!B2:D;

Response!BP2:BS,Response!B2:D;

Response!BT2:BW,Response!B2:D;

Response!BX2:CA,Response!B2:D;

Response!CB2:CE,Response!B2:D;

Response!CF2:CI,Response!B2:D;

Response!CK2:CN,Response!B2:D;

Response!CO2:CR,Response!B2:D;

Response!CS2:CV,Response!B2:D;

Response!CW2:CZ,Response!B2:D;

Response!DA2:DD,Response!B2:D

},

"select * where Col1 <> '' Order By Col6"

)

然而,当你在看片Transformed,在山口˚F一些数据(对应Response片上校B)没有得到转移。这个问题怎么解决?

在此先感谢

回答:

人们常常注意的是,用户都禁不住一列中混合数据类型。 query()函数会产生不希望的输出。如果列是用于数字值,那么只有数字值必须位于该列中。日期栏只能包含日期,而文本栏只能包含文本值。

这并不意味着只要它们是文本格式,数字就不能出现在文本列中。 通常,query()函数将假设列中的单元格类型的数量越多,该数据类型就越多。例如,如果在同一列中有100个数字和20个文本值,则会为该列假设一个数字值。文本值很可能会被忽略。公式中的细微变化会将所有值转换为文本。

看看这有助于

=ArrayFormula(QUERY(to_text({ 

Response!E2:H,Response!B2:D;

Response!I2:L,Response!B2:D;

Response!M2:P,Response!B2:D;

Response!Q2:T,Response!B2:D;

Response!U2:X,Response!B2:D;

Response!Z2:AC,Response!B2:D;

Response!AD2:AG,Response!B2:D;

Response!AH2:AK,Response!B2:D;

Response!AL2:AO,Response!B2:D;

Response!AP2:AS,Response!B2:D;

Response!AU2:AX,Response!B2:D;

Response!AY2:BB,Response!B2:D;

Response!BC2:BF,Response!B2:D;

Response!BG2:BJ,Response!B2:D;

Response!BK2:BN,Response!B2:D;

Response!BP2:BS,Response!B2:D;

Response!BT2:BW,Response!B2:D;

Response!BX2:CA,Response!B2:D;

Response!CB2:CE,Response!B2:D;

Response!CF2:CI,Response!B2:D;

Response!CK2:CN,Response!B2:D;

Response!CO2:CR,Response!B2:D;

Response!CS2:CV,Response!B2:D;

Response!CW2:CZ,Response!B2:D;

Response!DA2:DD,Response!B2:D}),"select * where Col1 <> '' Order By Col6"))

以上是 Google表格:查询功能无法复制数据 的全部内容, 来源链接: utcz.com/qa/261267.html

回到顶部