首页 > 解决方案 > 在复杂公式中添加另一个单元格的值

问题描述

我找到了一个我正在使用的复杂公式,但我想对其进行编辑,以便将另一个单元格的值添加到输出中。

请参见此处的表 1:

https://docs.google.com/spreadsheets/d/1VrJEEVtYt1r4jPABpazQ31JVmotYF0LV3aroTHAcuq0/edit?usp=sharing

我需要编辑单元格 D4 中的公式,以便将结果附加到 B 列中的相应值。

标签: google-sheetsconcatenationgoogle-sheets-formulaarray-formulasgoogle-sheets-query

解决方案


也许:

=ARRAYFORMULA(IF(C4:C="",,TRIM(TRANSPOSE(SPLIT(QUERY(
 REPT(Data!B5:B&"♠", Data!A2), ,999^99), "♠")))&"-"&B4:B))

0


推荐阅读