The Excel VLOOKUP function searches for a value by matching on the first column of a table and returns the corresponding value from a certain column in the same row. This tutorial is talking about how to use the VLOOKUP function by
explaining the syntax, arguments, return value,
function notes and simple examples in details. Syntax=VLOOKUP (lookup_value, table_array, col_index, [range_lookup]) ArgumentsLookup_value (required): The value you are searching for. It must be in the first column of the table_array range. Table_array (required): The table contains two or more columns where the lookup value column and the result value column locating. Col_index (required): The specific column number (it is an integer) of the table_array, which you will return the matched value from.
Range_lookup (optional): This is a logical value that determines whether this VLOOKUP function will return an exact match or an approximate match:
Important: In this circumstance, the values in the first column of the table_array must be sorted in ascending order;
In this circumstance, the values in the first column of the table_array don’t need to be sorted. Return valueThe VLOOKUP function will return the matched value from a table based on the lookup value in the first column. Function notes1. The LOOKUP
function only looks for value from left to right. ExamplesThis section provides examples to show you how to use the VOOKUP function in Excel. Example 1: Exact match VS approximate match with VLOOKUP function1.1 Vlookup exact match: As the below screenshot shown, how to search for an exact match value “Peach” and return its corresponding value from the third column in the table range B3:E8? You can do as follows to achieve it. 1. Select a blank cell, copy the below formula into it and press the Enter key to get the result. 1.2 Vlookup approximate match: As the below screenshot shown, you want to search for an order ID number “10006”, if the number can’t be found, then do the approximate match. 1. Select a blank cell, copy the below formula into it and press the Enter key to get the result. Notes:
Example 2: Vlookup return blank or specific value instead of #N/AWhen doing exact match with VLOOKUP function, it will return #N/A error value if the look up value can’t be found. See screenshot: How to keep the result cell blank or return specific value instead of #N/A when the look up value can’t be found? Here is the solution below. 1. Copy the below formula into the cell you will output the result and press the Enter key: Note: In the formula, “not found” is the content you will display in the result cell instead of #N/A error. For keeping the result cell blank, please replace the text “not found” with a space. And you can change it based on your needs. More ExamplesVlookup formulas - Across workbooks/worksheets Vlookup values across multiple worksheets Vlookup to compare two lists in separated worksheets Vlookup to another workbook Vlookup formulas - Keep result formatting Keep cell formatting when Vlookup Vlookup and return background color along with the lookup
value Vlookup and return date format instead of number Vlookup and return matching value with cell
comment Vlookup formulas - Return multiple results Vlookup
and return matched values in multiple columns Vlookup to return multiple
values in one cell Vlookup and
return multiple values without duplicates Vlookup and return entire row of a matched
value Vlookup formulas - Other common cases Easily use vlookup
and sum in Excel Backwards Vlookup or in
reverse order Vlookup a certain value and only return true or false / yes or no Vlookup in two dimensional table The Best Office Productivity ToolsKutools for Excel - Helps You To Stand Out From CrowdWould you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.
Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
Comments (1) No ratings yet. Be the first to rate! |