簡體   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