【发布时间】:2020-08-03 10:48:09
【问题描述】:
我有一个元素列表:
John
Richard
Bill
Bob
Walter
而且我想做一些事情,将它们的所有可能组合放在两列中,不包括重复项。示例如下:
A B
John Richard
John Bill
John Bob
John Walter
Richard Bill
Richard Bob
Richard Walter
Bill Bob
Bill Walter
Bob Walter
如您所见,我排除了 John-John 和 Walter-Bill,因为已经存在 Bill-Walter 组合。如何使用公式做到这一点?
【问题讨论】:
-
嗨!我发布了我的答案。请让我知道它是否对您有用!我还添加了将数据附加到工作表的功能。
-
@player0 见meta.stackoverflow.com/questions/252079
标签: javascript google-apps-script google-sheets google-sheets-formula array-formulas