Skip to main content

How to exclude values in one list from another in Excel?

Author Siluvia Last modified
exclude values in one list from another

Supposing you have two data lists as the left screenshot shown. Now you need to remove or exclude names in column A if the name existing in column D. How to achieve it? And what if the two lists locate in two different worksheets? This article provides two methods for you.

Exclude values in one list from another with formula

Quickly exclude values in one list from another with Kutools for Excel


Exclude values in one list from another with formula

You can apply the following formulas to achieve it. Please do as follows.

1. Select a blank cell which is adjacent to the first cell of the list you want to remove, then enter formula =COUNTIF($D$2:$D$6,A2) into the Formula Bar, and then press the Enter key. See screenshot:

enter a formula to create a helper column

Note: In the formula, $D$2:$D$6 is the list you will delete values based on, A2 is the first cell of the list you are going to remove. Please change them as you need.

2. Keep selecting the result cell, drag the Fill Handle down until it reaching the last cell of the list. See screenshot:

drag and fill the formula to other cells

3. Keep selecting the result list, then click Data > Sort A to Z.

click Data > Sort A to Z

Then you can see the list is sorted as below screenshot shown.

click Sort button

4. Now select the entire rows of names with result 1, right click the selected range and click Delete to remove them.

select the entire rows of names with result 1 and delete them

Now you have excluded values in one list based on another.

Note: If the “to-remove-list” locating in range A2:A6 of another worksheet such Sheet2, please apply this formula =IF(ISERROR(VLOOKUP(A2,Sheet2! $A$2:$A$6,1,FALSE)),"Keep","Delete") to get all Keep and Delete results, go ahead to sort the result list from Ato Z, and then manually delete all name rows contains the Delete result in current worksheet.


Quickly exclude values in one list from another with Kutools for Excel

This section will recommend the Select Same & Different Cells utility of Kutools for Excel to solve this problem. Please do as follows.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Click Kutools > Select > Select Same & Different Cells. See screenshot:

click Select Same & Different Cells feature of kutools

2. In the Select Same & Different Cells dialog box, you need to:

  • 2.1 Select the list you will remove values from in the Find values in box;
  • 2.2 Select the list you will delete values based on in the According to box;
  • 2.3 select the Single cell option in the Based on section;
  • 2.4 Click the OK button. See screenshot:

set options in the dialog box

3. Then a dialog box pops up to tell you how many cells have been selected, please click the OK button.

a dialog box pops up to tell you how many cells have been selected

4. Now values in column A are selected if there are existing in column D. You can press the Delete key to delete them manually.

press the Delete key to delete them

  If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Quickly exclude values in one list from another with Kutools for Excel

 

Related articles:

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!