尝试通过Google表格上的ARRAYFORMULA申请CONCATENATE

时间:2018-06-22 17:30:50

标签: javascript google-sheets array-formulas

我有以下公式,希望通过ARRAYFORMULA应用于列。由于通过GOOGLE FORMS添加了新行,因此我无法进行COPY + PASTE,因为每个新的FORM条目都会删除右侧的所有列。

=IF(ISBLANK(A3),"", CONCATENATE(E3," : [",G3,"] : ",H3," ( ",text(C3,"HH:MM")," - ",text(D3,"HH:MM")," )"))

1 个答案:

答案 0 :(得分:1)

请尝试以下操作:

=ArrayFormula(E3:E100&" : ["&G3:G100&"] : "&H3:H100&" ( "&text(C3:C100,"HH:MM")*(A2:A100<>""))

可能更容易理解为:

=ArrayFormula(  
E3:E100  
&  
" : ["  
&  
G3:G100  
&  
"] : "  
&  
H3:H100  
&  
" ( "  
&  
text(C3:C100,"HH:MM")  
*(A2:A100<>""))