繁体   English   中英

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

[英]How can I return unique values horizontally on Excel

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

**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)))

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM