15.1 C
London
Friday, July 5, 2024
HomeSoftware TutorialsExcelExcel: How to Extract Unique Values Based on Criteria

Excel: How to Extract Unique Values Based on Criteria

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following basic formula to extract unique values based on criteria in Excel:

=UNIQUE(FILTER(B2:B14,A2:A14="West"))

This particular formula finds the unique values in the range B2:B14 where the corresponding cell in the range A2:A14 is equal to “West.”

The following example shows how to use this formula in practice.

Example: Extract Unique Values Based on Criteria in Excel

Suppose we have the following dataset in Excel that contains information about various basketball players:

We can type the following formula into cell E1 to extract a list of unique team names where the Conference column is equal to “West”:

=UNIQUE(FILTER(B2:B14,A2:A14="West"))

The following screenshot shows how to use this formula in practice:

Excel unique values based on criteria

We can see that the formula returned the names of the four unique teams who belong to the West conference:

  • Lakers
  • Mavs
  • Spurs
  • Rockets

Note: You can find the complete documentation for the Excel FILTER function here.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

How to Select a Random Sample in Excel
How to Rank Items by Multiple Criteria in Excel
How to Randomly Select Cells Based on Criteria in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories