KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to Extract Unique Values in Excel (With or Without Duplicates Included)

AuthorSunLast modified

When working with large datasets in Excel, extracting unique values is a common task. Whether you're cleaning up duplicate entries, building reports, or analyzing data, knowing how to isolate unique values can save you a lot of time.

However, "unique values" can mean two different things in Excel:
  • Exclude duplicates entirely – return only values that appear once
  • Include first duplicates – return each value once, keeping the first occurrence

In this guide, we'll walk you through multiple methods to handle both scenarios, including formulas, built-in Excel tools, and a much simpler solution.


Extract all unique values (appear only once)

Sometimes, you may need to extract values that appear only once in a dataset. In a customer list, this can help identify non-repeated records while completely excluding duplicate customer names.

A screenshot showing the unique values from the list

Below are two effective ways to extract values that appear exactly once in Excel.

Extract values that appear only once with an array formula

Excel formulas can help you extract values that occur only once, but they require careful setup.

Steps:

  1. Select your data range (e.g., A2:A16).
  2. In the Name Box (located to the left of the formula bar), enter a name for the selected data range, such as List, and press Enter.
    name the list
  3. Select a blank cell where you want to display the first unique value, and enter the following formula:
    =INDEX(List, MATCH(0, INDEX(COUNTIF(F1:$F$1, List) + (COUNTIF(List, List)<>1), 0, 0), 0))
  4. Press Ctrl + Shift + Enter to confirm.
  5. Drag the fill handle down to extract all unique results.
    use the formula to extract all unique values
Notes:
  • Here we enter the formula in cell F2, so F1:$F$1 refers to the cells above the output range.
  • Once all unique values are returned, additional cells may display #N/A. You can safely remove them.

Quickly extract unique values with Kutools for Excel

If complex array formulas are difficult to remember, Kutools for Excel’s Formula Helper provides a much simpler way to extract unique values automatically. Instead of manually building formulas, you only need to select the data range, and the tool will generate the formula for you.

Kutools for Excel - Packed with over 300 essential tools for Excel. Make Excel tasks faster, easier, and more efficient. Download now!

Steps:

  1. Select a blank cell where you want to return the first unique value.
  2. Select Kutools > Formula Helper > Formula Helper.
    enale the formula helper
  3. In the Formula Helper dialog:
    1. Select Extract unique values from the formula list.
    2. In the Arguments input section, select the data range from which you want to extract the unique values.
    3. Click OK.
      configure the formula helper

Result

The first unique value is returned instantly. Simply drag the fill handle down to extract all remaining unique values.

Behind the scenes, Kutools automatically creates the required array formula, allowing the results to update dynamically when the source data changes.

the result after applying the formula helper

This method stands out because you don’t need to remember complex formulas or perform any manual setup. It provides fast and accurate results with just a few clicks, making it an ideal solution for both beginners and advanced Excel users.

Kutools for Excel - Supercharge Excel with over 300 essential tools, making your work faster and easier, and take advantage of AI features for smarter data processing and productivity. Get It Now


Extract all unique values (include first duplicates)

In many cases, you may need to extract a list of unique customer names while keeping the first occurrence of duplicated entries. This is useful for creating a clean customer list, organizing records, or preparing data for analysis without repeated names appearing multiple times.

Here are three effective ways to achieve this in Excel.

Extract unique values including first duplicates with an array formula

In this section, you will learn how to use an array formula to extract a list of unique customer names while keeping the first occurrence of duplicated entries. This method returns each customer name only once, even if it appears multiple times in the original list. Although the formula is powerful and updates dynamically when the source data changes, it is relatively complex and may be difficult for many users to remember or modify.

Steps:

  1. Select a blank cell (e.g., F2).
  2. Enter the following formula:
    =IFERROR(INDEX($A$2:$A$16, MATCH(0, FREQUENCY(IF(EXACT($A$2:$A$16, TRANSPOSE($F$1:F1)), MATCH(ROW($A$2:$A$16), ROW($A$2:$A$16)), ""), MATCH(ROW($A$2:$A$16), ROW($A$2:$A$16))), 0)), "")
  3. Press Ctrl + Shift + Enter to get the first result.
  4. Drag the fill handle down to extract all unique values including the first occurrence.
    use the formula to extract unique values include first
Notes: Here we enter the formula in cell F2, so F1:$F$1 refers to the cells above the output range.

This formula is powerful but quite complex, making it harder to maintain.

Use Advanced Filter to extract unique values

If you prefer not to use complex array formulas, Excel’s built-in Advanced Filter feature provides a quicker and more straightforward way to generate a list containing only one instance of each customer name from the original dataset. This method is easy to use and works well for one-time data extraction tasks.

Steps:

  1. Select your data range (including the header).
  2. Go to Data > Advanced.
    enable the advanced sort feature
  3. In the Advanced Filter dialog box:
    1. Choose Copy to another location.
    2. Specify a destination cell.
    3. Check Unique records only.
    4. Click OK.
      configure the advanced sort feature

Result

Excel instantly creates a new list containing only unique customer names from the selected column, while automatically keeping the first occurrence of duplicated entries. The extracted results are placed in the specified output location, making it easy to create a clean customer list for further analysis or reporting.

the result after applying the advanced sort to extract all unique values

Limitations:

  • Results are static (won't update automatically).
  • Requires re-running if data changes.

Extract unique values in a few clicks with Kutools for Excel

If the array formula feels too complicated and the Advanced Filter method requires too many manual steps, Kutools for Excel provides a much faster and easier solution. With its Formula Helper feature, you can quickly extract a list of unique customer names while automatically keeping the first occurrence of duplicated entries. You only need to select the data range and click OK—Kutools will automatically generate the required formula for you, making the process much simpler and more efficient.

Kutools for Excel - Packed with over 300 essential tools for Excel. Make Excel tasks faster, easier, and more efficient. Download now!

Steps:

  1. Select a blank cell where you want to return the first unique value.
  2. Select Kutools > Formula Helper > Formula Helper.
    enale the formula helper
  3. In the Formula Helper dialog:
    1. Select Extract cells with unique values (include the first duplicate value) from the formula list.
    2. In the Arguments input section, select the data range from which you want to extract the unique values.
    3. Click OK.
      configure the formula helper

Result

The first unique customer name is returned instantly. Simply drag the fill handle down to extract all unique customer names while keeping the first occurrence of duplicated entries.

Behind the scenes, Kutools automatically generates the required array formula, allowing the results to update dynamically whenever the source data changes.

the result after applying the formula helper

This method requires no manual formulas or Advanced Filter setup and works instantly with just a few simple steps. By automatically generating the required formula, it greatly reduces the risk of formula errors and makes extracting unique values much easier, making it a perfect solution for everyday Excel tasks.

If you need a quick, repeatable, and hassle-free solution, Kutools for Excel is clearly the most efficient choice.

Kutools for Excel - Supercharge Excel with over 300 essential tools, making your work faster and easier, and take advantage of AI features for smarter data processing and productivity. Get It Now


Conclusion

Extracting unique values from a list in Excel can be useful for organizing records, preparing reports, and analyzing data more efficiently. Depending on your needs, you can either extract values that appear only once or generate a unique list while keeping the first occurrence of duplicated entries.

Although array formulas and Excel’s built-in features can accomplish these tasks, they often involve complex formulas or multiple manual steps. In comparison, Kutools for Excel's Formula Helper offers a much quicker and easier approach by automatically generating the required formula for you. With just a few clicks, you can extract unique values dynamically and handle daily Excel tasks more efficiently.


Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

ExcelWordOutlookTabsPowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in