Ravindra BagaleCourses & study guides Track your progress

Excel UNIQUE Function

Chala mitrano — today UNIQUE. Spill each city once — clean dropdowns and distinct lists.

Fictional sample data for learning. Distinct city lists for Mysore ops and Dublin CRM clean-ups.

Purpose

Return unique values from a range (spill).

Return value

A spilled list of distinct values.

Syntax

UNIQUE(array, [by_col], [exactly_once])

Arguments

ArgumentRequired?Description
arrayRequiredRange to scan.
by_colOptionalTRUE compares columns.
exactly_onceOptionalTRUE keeps values that appear only once.

Version

Microsoft 365 / Excel 2021+ with dynamic arrays. LibreOffice limited; Google Sheets has FILTER/SORT/UNIQUE/SEQUENCE/RANDARRAY cousins.

How to use — Why → What → How

Why: Distinct lists feed data validation and summaries. UNIQUE spills them live. Distinct city lists for Mysore ops and Dublin CRM clean-ups. In Indian back offices and foreign sister teams, UNIQUE shows up on live dashboards and spill ranges every week.

What: UNIQUE drops duplicates. exactly_once=TRUE keeps only loners (appeared once). Read every argument in the table once before you type; each one changes the answer on purpose.

How — numbered steps:

  1. Type =UNIQUE(A2:A100).
  2. Wrap SORT for A→Z.
  3. exactly_once for orphans.

Ravindra Bagale's Tip

Friends, after UNIQUE, find one column or range in a real workbook this week where this lesson saves time.

Ravindra Bagale's Tip

Friends, sleep on UNIQUE; rebuild example 1 tomorrow without looking.

Ravindra Bagale's Tip

Friends, say the business question in plain words before =UNIQUE.

Ravindra Bagale's Tip

Friends, check a known case with a calculator before you trust a long UNIQUE chain.

Ravindra Bagale's Tip

Friends, after you finish UNIQUE, open yesterday’s real workbook and find one place this function would have saved ten minutes.

Ravindra Bagale's Tip

Friends, treat UNIQUE like a seatbelt on spill ranges — clear #SPILL! blocks first.

Download practice file: practice-unique.xlsx (includes sheet About this data, practice sheets, and Answers).

Worked examples

1) Distinct cities

Mysore.

City
Pune
Austin
Pune
Formula: =UNIQUE(A2:A4)

Result: {Pune;Austin}

What it means: Two cities.

2) Sorted unique

Nice list.

City
Cid
Amy
Cid
Ben
Formula: =SORT(UNIQUE(A2:A5))

Result: {Amy;Ben;Cid}

What it means: Sorted distinct.

3) Dublin IDs

Tickets.

ID
T1
T2
T1
Formula: =UNIQUE(A2:A4)

Result: {T1;T2}

What it means: Two IDs.

4) exactly_once

Orphans.

X
1
2
1
3
Formula: =UNIQUE(A2:A5,,TRUE)

Result: {2;3}

What it means: Only once.

5) Multi-col rows

Distinct rows.

AB
1x
1x
2y
Formula: =UNIQUE(A2:B4)

Result: {1,x;2,y}

What it means: Distinct pairs.

6) All same

One value.

X
a
a
Formula: =UNIQUE(A2:A3)

Result: {a}

What it means: Single spill.

Common errors and fixes

#SPILL! — Blocked. Fix: Clear.
Order — First-seen order by default. Fix: Wrap SORT.
exactly_once — Loners only. Fix: Not ‘all distinct’.

Notes and tips

  • Revisit the UNIQUE errors table after the quiz.
  • Build example 1 from memory on a blank sheet.
  • Check number vs text if a result looks wrong.
  • Teach one tip in Marathi or Hindi this week.
  • Keep currency symbols consistent inside one report column (practice mixes ₹ $ £ €).
  • Drill: build a distinct city list from five messy rows.
  • UNIQUE vs FILTER: distinct spill versus condition spill.
  • Fictional sample data only — names and amounts are for learning.
  • Print the UNIQUE revision card for one week of real worksheets.
  • Ask juniors to predict before they press Enter.
  • Track your top mistake with this function monthly.
  • Distinct city lists for Mysore ops and Dublin CRM clean-ups.
  • Interview tip: explain the business question before the formula.
  • Classroom drill: invent three brand-new formulas from your city without the page open.
  • If a result looks wrong, check blanks vs zeros before rewriting.
  • When Excel versions differ, note the LibreOffice / Sheets fallback in a cell comment.
  • Prefer clear ranges over whole-column refs on huge sheets if speed matters.
  • Document units (₹, kg, days) in the header so totals stay honest.
  • Print the revision card for UNIQUE for one week of real worksheets.
  • When helping a junior, ask them to predict before Enter.
  • Share one tip with a classmate in Marathi or Hindi.
  • Keep currency symbols consistent inside a single report column.
  • Interview tip: explain the business question before the formula.
  • If a result looks wrong, check spill range blocks (#SPILL!) before rewriting.
  • When Excel versions differ, write a LibreOffice / Sheets fallback under a comment.

In real work

Drill: build a distinct city list from five messy rows. Distinct city lists for Mysore ops and Dublin CRM clean-ups. Classroom drill: write three brand-new UNIQUE formulas on a blank sheet using names from your own city — if you can invent them without the page open, you own the skill. Then break one formula on purpose and watch the error; recovering from that break is half of interview readiness. Always verify with a known case before trusting a long chain. Keep a personal notebook of the one mistake you make most often with this function; review it monthly.

How it compares

UNIQUE vs FILTER: distinct spill versus condition spill.

Interview corner

Order?
First seen.
exactly_once?
Appeared once.
vs COUNTIF?
List vs count.

FILTER, SORT, COUNTIF

Practice tasks (10)

  1. Task 1. Distinct cities.
    UNIQUE.
  2. Task 2. SORT UNIQUE.
    Alpha.
  3. Task 3. exactly_once.
    Loners.
  4. Task 4. Distinct rows.
    Pairs.
  5. Task 5. IDs.
    Dublin.
  6. Task 6. Interview.
    Talk.
  7. Task 7. Teach.
    Teach.
  8. Task 8. Dropdown list.
    DV.
  9. Task 9. Fill.
    Fill.
  10. Task 10. Document.
    Note.

Quick quiz

Q1. UNIQUE default order?
Q2. exactly_once TRUE?
Q3. Pune twice → UNIQUE?
Q4. A→Z unique?
Q5. Blocked?

Answers: Q1=First seen, Q2=Loners, Q3=One Pune, Q4=SORT(UNIQUE()), Q5=#SPILL! (check after you try).

Revision card

Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.

Revision card: UNIQUE
UNIQUE revision card