仕組みと動作原理
UNIQUE関数はExcel業務を効率化する代表的な関数です。リストまたは範囲から重複を排除し、一意(ユニーク)な値のリストを返します。 複雑な集計や参照処理を簡素化し、データ分析の精度と生産性を飛躍的に高めます。
💡 わかりやすい要約
Looks at a list with duplicate entries and returns a clean list containing only one copy of each item.
"Think of this like sorting cards. If you have five duplicate red aces, it keeps only one copy and throws the rest away."
構文.
標準Excel表記法=UNIQUE(配列, [列単位], [1回のみ出現])引数一覧.
この関数で指定できるすべての引数について詳しく解説します。
The range or array to extract unique values from.
指定例:A2:A6FALSE = Compare rows (default), TRUE = Compare columns.
初期値: FALSEFALSE = Return all unique values (default), TRUE = Return only values that appear exactly once in the list.
初期値: FALSE具体的な計算例
ステップ別の実務シナリオExtract Sales Categories
Extract a clean list of unique product departments that recorded sales.
| Sale Department | Amount | Unique list | ||
|---|---|---|---|---|
| Electronics | 120 | — | — | — |
| Home Decor | 45 | — | — | — |
| Electronics | 250 | — | — | — |
=UNIQUE(A2:A6)Evaluates UNIQUE over the sample table cells, placing the verified output in cell C2:C6.
数式ジェネレーター
ウィザードを開く引数を入力するだけで、シートにそのまま貼り付けて使える数式を作成できます。
=UNIQUE()出力される値の特性
Returns "Calculated output" based on sample evaluation criteria and active cell references.
実務上のベストプラクティス
- Nest UNIQUE inside SORT to get a alphabetically or numerically sorted list of unique values (e.g. `=SORT(UNIQUE(A2:A20))`).
- You can retrieve unique rows across multiple columns (like unique First/Last name combos).
よくあるミスと注意点
- Requires Excel 365 or 2021+. Returns #SPILL! if any cell in the output range is already occupied.
各プラットフォーム対応表
実際のExcelおよびGoogleスプレッドシートの計算エンジン仕様に基づいた検証結果です。
In Excel 2019, use Data > Remove Duplicates or an Advanced Filter with "Unique records only".
Introduced in Excel 365 and Excel 2021. Not available in Excel 2019.
Native Google Sheets function for deduplicating ranges with automatic multi-cell spilling.
よくある質問と回答
技術解説How does UNIQUE handle empty or blank cells?↓
By default, UNIQUE will return a 0 for blank cells in the source range. You can nest FILTER inside UNIQUE to exclude empty cells before deduplicating.
Can UNIQUE extract items that appear exactly once?↓
Yes. Setting the third argument exactly_once to TRUE will filter out any items that appear more than once, leaving only distinct unique entries.