Excel filter multi-table lookup

Arranged to organize some information today. Learn the following:

1. Open Excel Filter.

It's very simple, just click "Start"------>"Sort and Filter"------->"Filter", and the filter button will come out. Actually, I never knew it before. .

 

Initial effect, no "filter button"

 

Turn on filtering:


 
After opening


 Then you can filter what you need.

 

2. EXCEL multi-table query.

For example: I need to query whether "Zhang San" in table A exists in table B. Then I need to use the vlookup() function (this function is used a lot in my sorting work, mainly to verify whether the name in table A exists in table B, so I can know who has not handed in something).

Describe this function:

The syntax rules for this function are as follows:
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

 

parameter
Brief description
input data type
lookup_value
value to look up
Numeric, reference, or text string
table_array
area to find
data table area
col_index_num
Returns the column number of the data in the search area
positive integer
range_lookup
fuzzy match/exact match
TRUE (or leave blank)/FALSE

 

 

Get started with:

1. (At this time, it is table A) Right-click ----""Insert"-------""Insert Entire Column". (Why? Because one more column is needed to store the query results, and then you can intuitively see that the name has been found.)


 

2. (This time it is table A) Input function: vlookup( As you can see, it prompts you to fill in the complete parameters.



 
 (At this time, it is table A) Fill in the first parameter: the value to be found. Let's fill in the entire A column. So just click on column A and ok! ! Then it will automatically fill in the entire A column for you.


 

 (At this time, it is the B table) Continue, the second parameter: the range to be searched. That's where you're looking for the first parameter.

We need to add an English comma: ,  . Remember to be in English. Then switch to another Excel file. Then click on the column you want to find. What we need to find is "Name", a column, so we need to click on column C of another Excel file. the entire C column. You can see that the second function has been added. And it starts with another Excel sheet name.


 

Next, continue to improve the third parameter. Returns the column number of the data in the search area. This should be noted: it is the column of your search area, only one column is selected here, so write "1". The base number starts from 1. Of course, an English comma must be added before writing "1".


 

There is one last parameter left. This omelette, because you can fill in only: true and false. Represents: true: fuzzy matching false: exact matching



 

 Function complete! ! Feel free to go back! ! . Then the results come out.

wait! ! This is not enough, this is just a result, what you need is a lookup of the entire column. Therefore, you need to place the mouse in the lower right corner of the cell where the function is written --------> Double-click! ! Then the whole column has the result.


 

As you can see from the results, if the name in table A is queried in table B, it will be returned.

 

end. . . . Writing a blog is exhausting. . .
 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326389526&siteId=291194637