google-sheets - Google Sheets: Use ArrayFormula for JoinText for multiple columns
问题描述
I want to Use ArrayFormula for JoinText for multiple columns which have their own ArrayFormulas in Google Sheets. My formula works for columns that have plain text values but for some reason Google Sheets gives me an error when I apply it to columns that have their own ArrayFormulas applied to them.
Take a look at the example sheet I've created HERE
Any help will be appreciated!
解决方案
我希望这个带有查询的解决方案对您有所帮助:
=ArrayFormula(transpose(query(transpose(C1:D),,2)))
(如果您知道范围的限制,将会更快地工作,例如C1:D10
)。
为了在列之间实现逗号,您可以使用
=ARRAYFORMULA(IF(C1:C="",D1:D,if(D1:D="",C1:C,C1:C&", "&INDIRECT("D1:D"))))
推荐阅读
- reactjs - 这个语法是什么意思 export default connect(mapStatetoProps, mapDispatchToProps)(LandingComponent)
- python-3.x - 如何计算数组的梯度
- pandas - 在熊猫数据帧的一行中,索引引用的某些列的最大值/最小值
- python - PySide2 等效于 PyQt5 的 loadUiType() 以动态混合 UI 设计
- swift - 如何摆脱 [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) 获取输出帧失败,xcode 中的状态 8196
- applescript-objc - 如何使用 AppleScript-objc 压缩文件夹?
- javafx - 在 Javafx 中,如何将网格窗格的大小单元格设置为父窗格的一小部分?
- reactjs - “RemoteDependencyData”类型上的字段“名称”太长
- flutter - 如何在颤动中从列表视图中填充表单
- google-cloud-platform - vpc 中的 Packer 谷歌云身份验证