excel - 如何在 Excel 上水平返回唯一值

标签 excel excel-formula unique horizontallist

我有一张从 A1-A10 看起来像这样的 table

**Animal**
Zebra
Zebra
Zebra
Giraffe
Giraffe
Monkey
Monkey
Cat
Cat
我只想连续返回唯一值 HORIZONTALLY - 并按字母顺序排序
像这样:
Cat   Giraffe   Monkey   Zebra
目前我在 D3 中有这个公式:但这会垂直返回唯一值
=IFERROR(LOOKUP(2, 1/(COUNTIF($D$2:D2, $A$2:$A$10)=0), $A$2:$A$10), "")
Zebra
Monkey
Giraffe
Cat

最佳答案

使用 Microsoft365:

=TRANSPOSE(SORT(UNIQUE(A2:A10)))
enter image description here

关于excel - 如何在 Excel 上水平返回唯一值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65918084/

相关文章:

postgresql - postgresql 分区的唯一索引

php - 在php中下载xls格式的文件后遇到问题

excel - 数据透视表显示值,而不是值的总和

Excel 表达式复制行但删除空白行

excel - 如何计数到某个值?

database - 数据库中的唯一实体

python - 创建现有字典的副本,但为副本分配唯一的 ID

vba - VBA,excel宏暂停并尽可能恢复工作

excel - 如何遍历多行并根据标记的行调用 vba

python - 使用 "ws.cell(row = row, column = columnl).value = looprow"删除之前保存在 python 中的数据