VLOOKUP Function Guide
Master the VLOOKUP function with practical examples and error solutions. Learn how to search and retrieve data efficiently in Excel and Google Sheets.



=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Practical Examples
Basic Product Price Lookup
Find the price of a product using its SKU code
Dynamic Employee Department Lookup
Find an employee's department using a cell reference for flexible lookups
Cross-Sheet Sales Commission Calculation
Calculate commission by looking up the rate from another sheet
Error-Handled Customer Information Retrieval
Safely retrieve customer data with graceful error handling
Nested VLOOKUP for Multi-Level Data
Use VLOOKUP result as input for another VLOOKUP
Wildcard Search with VLOOKUP
Find partial matches using wildcard characters
Common Errors and Solutions
VLOOKUP cannot find the lookup value in the first column
The lookup value doesn't exist in the first column of the table array, or there's a data type mismatch between the lookup value and table data
1. Verify the lookup value exists in the first column using Ctrl+F 2. Check for leading/trailing spaces with TRIM() function 3. Ensure numbers aren't stored as text (green triangles in cells) 4. Use IFERROR wrapper for graceful handling: =IFERROR(VLOOKUP(...), "Not Found") 5. Convert text to numbers using VALUE() if needed
Always validate data types match and use exact match (FALSE) when appropriate
Example:
VLOOKUP references a column that doesn't exist
The col_index_num is larger than the number of columns in the table_array, or referenced cells have been deleted
1. Count the actual columns in your table_array 2. Ensure col_index_num doesn't exceed total columns 3. Use named ranges to prevent range deletion issues 4. Rebuild formula with correct column reference 5. Use COLUMNS() function to dynamically count columns
Always use structured references or named ranges for stability
Example:
VLOOKUP receives incompatible data types or invalid parameters
The col_index_num is not a number, contains text, or is less than 1, or the formula has syntax errors
1. Verify col_index_num is a positive integer 2. Check for hidden characters in cells 3. Ensure no text in numeric parameters 4. Use VALUE() to convert text numbers 5. Verify formula syntax is correct
Validate all parameters are correct data types before using
Example:
VLOOKUP returns a value but it's incorrect
Using TRUE (approximate match) instead of FALSE, duplicate values in lookup column, or incorrect column index
1. Change range_lookup to FALSE for exact matching 2. Remove duplicates from lookup column 3. Verify correct column index number 4. Check if data is sorted for approximate match 5. Use helper columns to combine multiple criteria
Default to FALSE unless specifically needing approximate match
Example:
VLOOKUP formula calculates slowly or freezes Excel
Searching entire columns (A:A), volatile functions in lookup value, or thousands of VLOOKUP formulas
1. Limit range to actual data (A2:D1000 instead of A:D) 2. Convert formulas to values where possible 3. Use INDEX-MATCH for better performance 4. Enable manual calculation mode 5. Consider Power Query for large datasets
Always specify exact ranges and minimize formula count
Example:
Advanced Tips and Best Practices
When copying VLOOKUP formulas down a column, use absolute references for the table array ($B$2:$D$100) to prevent the range from shifting. This ensures all formulas reference the same data table while allowing the lookup value to change relatively.
VLOOKUP can only search one column, but you can create a helper column that combines multiple criteria using CONCATENATE or the & operator. This enables pseudo-multiple criteria lookups.
Remember that VLOOKUP can only search in the leftmost column of your table array and return values to the right. If you need to look up values to the left, use INDEX-MATCH or XLOOKUP (Excel 365) instead.
In 95% of business scenarios, use FALSE for the range_lookup parameter to ensure exact matches. TRUE should only be used for sorted data with ranges like tax brackets or commission tiers.
Instead of cell references, use named ranges to make formulas self-documenting. Replace 'B2:E100' with 'ProductTable' for clearer, more maintainable formulas that are easier to audit.
Excel 365 and 2021 users should consider XLOOKUP as a more flexible alternative. It can search in any direction, has built-in error handling, and doesn't require column counting. However, VLOOKUP remains essential for compatibility.
For datasets over 50,000 rows, limit your table_array to the actual data range rather than entire columns. Sorted data with approximate matching (TRUE) is 10x faster than exact matching for large datasets.
Need Help with VLOOKUP Function Guide?
Stop struggling with formula syntax. Use AskFormulas to generate validated formulas instantly with our AI-powered tool.
Example Excel formula:
Related Formulas
Master the FILTER function to dynamically extract data meeting specific criteria. Learn syntax, examples, and error solutions for Excel 365 and Sheets.

Master the HLOOKUP function for horizontal table searches in Excel and Sheets. Find values across rows with examples and error fixes.

Master the powerful INDEX MATCH combination. Learn flexible lookups that surpass VLOOKUP with examples and error solutions for Excel & Sheets.
