Excel tips - VLOOKUP & MATCH
VLOOKUP
VLOOKUP is an Excel function to look up data in a table organized vertically.
Syntax
1 | =VLOOKUP (lookup_value, table_array, col_index, [range_lookup]) |
Arguments
- lookup_value: The value to look for in the first column of a table.
- table_array: The table from which to retrieve a value.
- col_index: The column in the table from which to retrieve a value.
- range_lookup: [optional] TRUE = approximate match (default). FALSE = exact match.
Example1: Exact Match

In this example, the range_lookup argument = “False”, if in the table we cannot find the “Peach”, then it will return “N/A”. We can use “IFERROR(VLOOKUP(H4,B3:F8,3,0),”Not found”)” to avoid the “N/A”.
Example2: Approximate match

In this example, we use the approximate match: 10006 is not exists in the table, so vlookup return the value of “10005” as the result.
MATCH
MATCH is an excel function used to locate the position of a lookup value in a row, column, or table. It is always used with function VLOOKUP to locate the index value
Syntax
1 | =MATCH (lookup_value, lookup_array, [match_type]) |
Arguments
- lookup_value: The value to match in lookup_array.
- lookup_array: A range of cells or an array reference.
- match_type: [optional] 1 = exact or next smallest (default), 0 = exact match, -1 = exact or next largest.
Example1: Exact match

If “Charles Monaghan” is not in the list, the function will return “N/A”
Example2: Approximate match ASC

Example3: Approximate match DESC

All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment