• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Excel Tutorials by Y. Acosta

Excel Tutorials + Tips

  • Excel Tutorials
  • Etsy Store
  • Other Resources
  • About Me
    • About Me
    • Contact Me
    • FREE Printable List of Top Excel Keyboard Shortcuts
  • FREE pdf of Top Excel Shortcuts!

UNIQUE Function: Excel’s Unique Values Formula (+ video tutorial)

❤ Support Free Excel Training by Sharing -

We may be compensated for your purchase of any of the products featured on this page – it helps us keep the lights on :)

Using the UNIQUE function in Excel is one of the easiest ways to find unique values in your data.

Currently only available to Office 365 users, this function works by returning a list of unique values from your data.

Oh, and you can use it with numbers, letters, and most other characters!

How to Use the UNIQUE Function in Excel

WATCH: How to Use the UNIQUE Function in Exel (Video Tutorial)

When you use the UNIQUE function in Excel, it returns a list of unique values from the data that you’ve selected.

What makes this function so powerful is that it was created in a way to give you options as to *how* you can filter for those unique values – who knew?!

For example, you can set up the UNIQUE function to give you results that:

  • List each item in your list once (most common)
  • Get unique values whether your data is in columns or rows
  • Omit from its results anything that is listed more than once (i.e., returning only items that are not duplicated)

=UNIQUE(array,[by_col],[exactly_once]) – don’t worry if this looks complex, we’ll break this all down below.

Use UNIQUE to Return a List Where Each Item is Listed Once

This is probably the most common way to use Excel’s UNIQUE function.

In this scenario:

  • Your items are listed in a column (this means each individual item is in a row in the same column – I know, it seems odd to mention it, but it’s actually really important)
  • Some items in your list are repeated
  • And you want to generate a list from this where each item is listed only once, even if it’s repeated in the original data

To use the UNIQUE function, you would:

  1. Type =UNIQUE(
  2. Select the items that you would like to see unique values for (omitting any headers) and
  3. Press ENTER

TIP: Make sure to exclude any headers from your UNIQUE function

Let’s say you have a list of first names in Column A. The list spans from cells A1 to A12, where A1 is the header.

You would ignore the header and select each of the names to include in your UNIQUE function.

Your formula would look like this: =UNIQUE(A2:A12)

Example of Basic UNIQUE Function in Excel
Example of Basic UNIQUE Function in Excel

Get a List of Unique Values Whether Your Data is in Columns or Rows

The default for the UNIQUE function is to filter through your data when each list item is in a row (this actually means in a column but in each row of that column).

An example of this would be where a list is in Column A and each item is listed just below it.

This means the items that you would be filtering through are each listed in a separate row (Row 2, Row 3, etc).

Example of List With Items Listed One in Each Row
Example of List With Items Listed One in Each Row

But sometimes, you may need to filter across columns (this means your items are listed across / horizontally but each one is in a different column).

In this case, you would type “TRUE” in the second argument: [by_col]

Your formula would look something like: =UNIQUE(B2:J2,TRUE) or =UNIQUE(B2:J2,TRUE,FALSE)

Example of UNIQUE Function in Excel Across Columns
Example of UNIQUE Function in Excel Across Columns

Use UNIQUE to Get Only Items that Are Not Repeated

You can also use the UNIQUE function to generate a list that omits anything that is listed more than once in your selected data. (i.e., items listed only one time.)

For example, in the list of First Names, only Buddy, Emerson, and Jill appear once. All other items are repeated.

Example of Distinct Values in a List
Example of List with Non-duplicate Items Highlighted

You can use the UNIQUE function in a way that returns only Buddy, Emerson, and Jill.

The option for this can be found in the last argument of the function: “exactly_once”

To do this, in this last argument, you would select (or type) “TRUE.”

To use the UNIQUE function to get items listed only once:

  1. Type =UNIQUE(
  2. Select your data
  3. Skip the second argument, “[by_col],” by inserting 2 commas or selecting FALSE for it (unless you’re filtering across columns, then select TRUE)
  4. Select or type TRUE for the third argument “[exactly_once]”

So, for this example, your formula will look like one of two ways:

=UNIQUE(A2:A12,,TRUE) or =UNIQUE(A2:A12,FALSE,TRUE)

Example of Excel UNIQUE Function for Distinct Values
Example of Excel UNIQUE Function for Non-duplicate items

If your data is formatted horizontally, your formula might look something like: =UNIQUE(B2:J2,TRUE,TRUE)

Example of UNIQUE Function in Excel Across Columns for Non-Duplicated Values
Example of UNIQUE Function in Excel Across Columns for Non-duplicate Values

Other Cool Ways to Use Excel’s UNIQUE Function

Find Unique Values Across Multiple Columns / Rows

You can use the UNIQUE function to find unique values that span multiple adjacent rows or columns.

For example, say you want to see unique values for first name (Column A) and last name (Column B), not just for the first name.

To do this, you would select both the first name and last name items in your formula.

So your formula might look like: =UNIQUE(A2:B12)

Example of Excel UNIQUE Function for Multiple, Adjacent Cells
Example of Excel UNIQUE Function for Multiple, Adjacent Cells

Combine the UNIQUE Function with Other Excel Formulas for More Options

Like other functions in Excel, the UNIQUE function can be combined, or nested, with other functions to generate more custom results.

For example, let’s say that you want to alphabetize the results of your UNIQUE function. You can combine the UNIQUE and SORT functions to do this.

In the example of names that we’ve been using, you would nest the UNIQUE function inside of the SORT function to generate alphabetized results.

Your formula may look like: =SORT(UNIQUE(A2:A12))

Example of UNIQUE Excel Function Nested in SORT Function
Example of UNIQUE Excel Function Nested in SORT Function

FYI, this tutorial was created using the desktop version of Excel in Microsoft 365.


Related Articles:

  • How to use the CHOOSE function in Excel - Tutorial
    How to Use the CHOOSE Function in Excel - Tutorial
  • Change a Range of Cells from Negative to Positive in Excel (thumbnail image)
    4 Ways: Change Negative Numbers to…
  • How to use the MATCH function in Excel - Tutorial
    How to use the MATCH Function in Excel - Tutorial

❤ Support Free Excel Training by Sharing -

blank

About Y. Acosta

Yil's (pronounced like "Jill") passion for Excel spreadsheets can be traced back to her days in marketing, where she spent significant time working on analytics. As a content creator, she now specializes in Excel spreadsheet tutorials. Make sure to visit the About page to learn more.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Follow us:

Latest Tutorial:

Featured image for How to Use Find & Replace to Remove Wildcard Characters in Excel article

Click Here for More Excel Tutorials!!!

Get Your FREE pdf of Top Excel Keyboard Shortcuts!

* indicates required

blank

Image-button for Invoice Template for Etsy

Copyright © 2025

  • Home
  • Excel Tutorials
  • Resources
  • About Me
  • Privacy Policy & Terms of Use
  • Disclaimer
  • Advertiser Disclosure
  • Contact Me
  • FREE Printable List of Top Excel Keyboard Shortcuts
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
SettingsAccept
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT