Cell/column/row formula/import 结果之间的分隔符

Cell/column/row divider between formula/import result

This is a Google Sheets case, but if you good enough with MS Excel and know the solution, don't be shy and share it with the community. Your experience could be relevant to all of us.

你好!我仍然没有在 google 中找到任何相关的解决方案,所以我 post 我的问题在这里。

我有一个示例 sheet,我通过公式将数据导入到单元格中: =UNIQUE(INDIRECT(C&"!"&$O3) 这意味着通过公式从 Sheet!Range:range

导入所有唯一值

它工作正常,我收到了必要的数据,例如:

但我想这样看:

它们之间有 X (1,2,3,etc) row/cell/column 个空格。我想 =SPLIT 公式应该可以帮助我解决这个问题,但是当我使用 , 作为分隔符时,我只收到第一个值,而不是我需要它的整个结果数组。

请问有什么方法可以通过公式或者Google Script达到我上图的效果吗?

SAMPLE TEST SHEET with EDIT permission here: https://docs.google.com/spreadsheets/d/1eYeFI8nL39kLNDkcyyjeqV8tc9LwG7P7cn2NzUIB7Wo

=ARRAYFORMULA(SUBSTITUTE(TRANSPOSE(SPLIT(QUERY(
 "♂"&UNIQUE(INDIRECT(F&"!"&$G2))&"♂♀",,999^99), "♂")), "♀", ""))