Excel’s LOOKUP capabilities are essential tools for data analysis because they let users quickly find and retrieve data from big databases. These functions boost productivity for various tasks, from straightforward lookups to intricate data management. This article will examine Excel’s most popular LOOKUP functions.
Excel’s LOOKUP functions look for and get data from tables according to particular criteria. They are crucial instruments for data analysis. Furthermore, they make it possible for users to locate and get data from huge databases quickly.
Also Read: 30 Basic Excel Formulas for Everyone
CustomerID | CustomerName | City | Country |
C001 | John Doe | Los Angeles | USA |
C002 | Aarav Patel | Mumbai | India |
C003 | Michael Lee | Sydney | Australia |
C004 | Ayşe Yılmaz | Istanbul | Turkey |
C005 | David Brown | London | Britain |
C006 | Marie Dubois | Paris | France |
C007 | Dinesh Perera | Colombo | Sri Lanka |
C008 | Rina Wijaya | Jakarta | Indonesia |
C009 | Carlos Rodriguez | Mexico City | Mexico |
C010 | Kwame Mensah | Accra | Ghana |
Excel’s LOOKUP function is useful for finding a value inside a range or array. There are two types of it: array and vector.
Syntax:
=LOOKUP(lookup_value, lookup_vector, [result_vector])
Example: The LOOKUP function may locate the name linked to a certain ID. If you have a list of employee IDs in column A and their corresponding names in column B, the result will be the ID that you are looking for.
=LOOKUP(A15,$A$1:$A$11,$C$1:$C$11)
Excel’s most frequently used function is the VLOOKUP function. It retrieves a value from another column in the same row after looking for a value in the first column of a range.
Syntax:
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Example: To find the City of a customer in the Sales table using the CustomerID:
=VLOOKUP(A15,$A$1:$C$11,3,0)
Also Read: VLOOKUP in Excel: Formula, How to Use, Examples & More
The HLOOKUP function is another LOOKUP function in Excel. After searching the top row of a range for a given value, it retrieves a value from a different row in the same column.
Syntax:
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
Example: Assuming the Customers table is transposed horizontally (customer data in rows):
=HLOOKUP(F8,$F$1:$P$4,3,0)
Learn More: HLOOKUP in Excel & Google Sheets
XLOOKUP was created to replace VLOOKUP and HLOOKUP. It has improved features, and it is more powerful and versatile.
Syntax:
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Example: To find the city of an customer’s Name using their ID from a table where IDs are in column A and Name in column B:
=XLOOKUP(A15,$A$1:$A$11,$B$1:$B$11)
Another alternative for VLOOKUP and HLOOKUP is the combination of INDEX and MATCH. This LOOKUP Function in Excel can search up values both horizontally and vertically. Thus providing greater versatility.
Syntax:
=INDEX(return_range, MATCH(lookup_value, lookup_range, [match_type]))
Example: To find the City for a given CustomerID using INDEX and MATCH:
=INDEX(A1:C11,MATCH(A15,A1:A11,0),match(B14,A1:D1,0))
The CHOOSE function returns a value from a list of values based on an index number.
Syntax:
=CHOOSE(index_num, value1, [value2], ...)
Example: To return the name of the country based on its number:
=CHOOSE(5,C2,C3,C4,C5,C6,C7,C8,C9,C10,C11)
Let us now look at some advantages and disadvantages of LOOKUP Functions in Excel.
Also Read: 80+ Excel Shortcuts That You Should Know in 2024
Knowledge of and proficiency with Excel’s LOOKUP features can significantly improve your data analysis and management skills. Learning to use these functions may change how you deal with data, from simple searches with LOOKUP and VLOOKUP to more complex methods with INDEX/MATCH and XLOOKUP. This will improve the effectiveness and efficiency of procedures. These operations provide the versatility and strength to perform various activities, whether managing massive databases, generating dynamic reports, or verifying data.
To learn more about Excel, sign in to Analytics Vidhya’s free course on Microsoft Excel formulas and functions.
A. VLOOKUP searches vertically for a value in the first column of a range and returns a value in the same row from a specified column. The LOOKUP function finds a value from the same position in a different row or column by doing a vertical or horizontal search.
A. Excel’s LOOKUP function finds a given value inside a range and returns a value from a separate range corresponding to that value. The LOOKUP vector is the range that needs to be searched, the LOOKUP value is the value that needs to be found, and the result vector is the range that should provide the correct value.
A. The new LOOKUP function in Excel is “XLOOKUP.” It searches a range or array and returns an item corresponding to the first match it finds. XLOOKUP can return the closest (approximate) match if a match doesn’t exist.
A. The LOOKUP function retrieves matching data from another range after searching for a certain set of data inside a range. This facilitates the retrieval and utilization of pertinent information from massive databases, which is helpful for data analysis and modification.