How to filter duplicate data on 2 Excel sheets
In basic Excel functions, Vlookup function is also used frequently. Vlookup function belongs to the function of searching data on Excel and we can combine functions with many other functions to process data, such as Vlookup function with If function, Vlookup function with Left function, using Vlookup function to combine 2 tables, .
In this article, Network Administrator will introduce how to use Vlookup function to filter duplicate data from 2 different sheets. Filtering duplicate data on Excel in a single sheet is relatively simple, just use the available filtering feature. But if 2 or more sheets, users can use Vlookup function.
- How to automatically display names when entering code in Excel
- How to combine Sumif and Vlookup functions in Excel
- How to use AVERAGEIF function in Excel
1. Use Vlookup function to filter Excel duplicate data
We will have 2 data tables below. In Sheet 1 will be the name column to filter duplicate data and Sheet 2 is the main data.
Sheet 2 has the data sheet as shown below.
Step 1:
In Sheet 1 in the first cell enter the same result, click on the Formulas tab and select Insert Function .
Step 2:
The Insert Function dialog box appears. In the Or select a category section, you will find the Lookup & Reference group because Vlookup function belongs to the search function group.
Scroll down to the bottom of the list and see the VLOOKUP function , click OK.
Step 3:
Next to display the Function Arguments dialog box. Here the user will enter data areas for each element.Lookup_value section, click on Sheet 1 and then click on cell C3 . Box C3 is the first box containing the name in Sheet 1.
Then the Lookup_value box will appear Sheet1! C3 .
At Table_array click on Sheet 2 and select the entire area of the data to be checked for the same. At Table_array, Sheet2 will appear ! C2: E11 with C2: E11 is the data area.
Readers need to note that if they want to check a lot of data, they need to fix the selection by clicking on the middle or the end of C2 and pressing F4, similar to E11 to be fixed. Now Table_array will be Sheet2! $ C $ 2: $ E $ 11 as shown below.
In Col_index_num, enter the position of the column you want to return data if it is the same. For example, the column of data that you want to check will be in the first column, so enter 1.
Range_lookup you enter 0 for the search function to be exact. Finally click OK.
Step 4:
The final result will show the name of the duplicated person.
Continue dragging the data in the first cell to the remaining cells. Since the area has been fixed, the function will not be roamed when copying the function formula. For cells that do not have the same data will return the # N / A error.
Step 5:
So we know in detail how to enter the Vlookup formula with each element in the recipe. To shorten the way, enter the formula like below.
- = VLOOKUP (Sheet1! C3, Sheet2! $ C $ 2: $ E $ 11.1,0)
Inside:
- Sheet1! C3 is cell C3 in Sheet 1, it is necessary to check the duplicate data.
- Sheet2! $ C $ 2: $ E $ 11 is the same data area to check in Sheet 2.
- 1 is the column where you want thelook function to return in the data area to be checked.
- 0 is the exact search type of Vlookup function.
2. Combining Vlook function, If function, ISNA function removes # N / A error
In the data check column for those cells that are not duplicated, the # N / A error will be displayed. If so, it can be combined with ISNA function to help you check the data # N / A. If the data is # N / A, the ISNA function will return TRUE, otherwise the function will return FALSE.
If the function checks the condition, it returns the value you specified, if it is false, returns the b value that the user specifies.
Step 1:
At Sheet 1 you enter 1 more column to compare with the Check column. In the first box you will enter the formula below.
- = IF (ISNA (VLOOKUP (Sheet1! C3, Sheet2! $ C $ 2: $ E $ 11,1,0)), "No", "Duplicate")
ISNA function will check the value of Vlookup function. If Vlookup function returns the # N / A error, the ISNA function will return TRUE value. Where # N / A is a non-duplicate data, If will return the result No.
If VLOOKUP returns a specific value, the ISNA function will return FALSE. The IF function will return a false condition of 'Duplicate'.
Step 2:
The results in the first box will notify the same. Continuing to scroll down to the boxes below will get different messages, corresponding to each value.
Step 3:
So you have the results of the Notification and No notification for the checklist. Finally, we can delete the Check column to compact the data table and interface more scientific tables without the # N / A error message.
Results of complete Sheet 1 data sheet as shown.
Above is how to use Vlookup function to search for duplicate values from multiple sheets on Excel. If done, you should combine the ISNA function, IF function and VLOOKUP function to produce more beautiful and faster filter results.
See more:
- How to copy Word data to Excel keeps formatting
- Instructions on how to separate column content in Excel
- How to rank on Excel with RANK function
I wish you all success!
You should read it
- VLOOKUP function to use and specific examples
- How to automate Vlookup with Excel VBA
- How to combine Vlookup function with If function in Excel
- How to use Vlookup function between 2 sheets, 2 different Excel files
- Use VLOOKUP to join two Excel tables together
- Vlookup function in Excel
- How to combine Sumif and Vlookup functions in Excel
- How to use Hlookup function on Excel
- Look up data in Excel tables: Replace VLOOKUP with INDEX and MATCH
- How to fix VLOOKUP error in Excel
- How to use VLOOKUP Function in Excel
- How to use the XLOOKUP function in Excel?
Maybe you are interested
How to turn a photo into a painting using the Generative Fill function in Photoshop
How to use the TREND function in Excel
Google Sheets Functions to Simplify Your Budget Spreadsheets
Instructions for using the TRIMRANGE function to clean up Excel tables
How to master numerical data in Google Sheets with the AVERAGE function
Don't buy headphones if they lack this important function!