是否可以使用单个 Google Sheets 公式将一列文本值无重复地转置为单行?

Is it possible to transpose a column of text values into a single row without duplicates, using a single Google Sheets formula?

我在一列中有一些数据是动态的,并且会自动添加到:

Brand 1
Brand 2
Brand 3
Brand 4
Brand 5
Brand 2
Brand 2

是否可以将这些转置,不重复地成为连续的 headers,理想情况下只需在品牌 1 单元格中添加一个公式?

例如Brand 1, Brand 2, Brand 3, Brand 4, Brand 5

您可以使用 transposeunique

=transpose(unique(A1:A))

如果需要跳过空格,请添加FILTER

=TRANSPOSE(UNIQUE(FILTER(A1:A, A1:A<>"")))