1. Use VLOOKUP and MATCH functions together. Formula idea: The MATCH function searches for the name and address, that is, the column number; the vlookup function searches for the data.
The formula is: =VLOOKUP(b1,sheet1!a1:g300,MATCH(b2,sheet1!b1:G1),0), the specific data range is adjusted according to your table.
2. Usage of vlookup function.
The syntax format of the vlookup function:
=vlookup(lookup_value,table_array,col_index_num, range_lookup)
=vlookup (the value searched in the first column of the data table, the search range, the column in which the returned value is in the search range, fuzzy matching/exact matching)
FALSE(0) Omitted for exact match.
TRUE(1) is an approximate match.
3. Usage of MATCH function.
Syntax format of function:
=MATCH(lookup_value,lookuparray,match-type)
lookup_value: Indicates the specified content of the query;
lookuparray: indicates the specified area of the query;
match-type: Indicates the query specification method, represented by the number -1, 0 or 1
1
Methods to move or copy tables:
Assuming that these two tables are not in the same excel, move them to the same table
2
Syntax of Vlookup function:
VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)
lookup_value: The value to look for, a numeric value, a reference or a text string
table_array: area to be searched, data table area
col_index_num: Returns the column number of the data in the area, a positive integer
range_lookup: fuzzy matching, TRUE (or not filled in) /FALSE
3
Find two columns of identical data:
The formula used is =VLOOKUP(A2,Sheet2!A:B,1,0)
The meaning of the formula is to find the value equal to a2 in the first column of the A:B area of the sheet2 worksheet. After finding it, return the value of the same row in the first column of the area (i.e. column E). The last parameter 0 means exact search.
4
Find the data corresponding to the two columns:
The formula used is =VLOOKUP(A2,Sheet2!$A$2:B150,2,0)
The meaning of the formula is to find the value in column B that meets the conditions in the A2:B150 area of the sheet2 worksheet. After finding it, return the value of the same row in column 2 (i.e. column F) of the area. The last parameter 0 means exact search.
5
After completing the above four steps, the last step is relatively simple. Just pull the filling handle to fill the blank space below. The corresponding data will be displayed directly if it is found. If it is not found, #N/A will be displayed.
The above is the detailed content of Learn how to find specific data in batches using Excel. For more information, please follow other related articles on the PHP Chinese website!