1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

How to use Excel's VLOOKUP Function

By

1 of 9

Find Price of Items with VLOOKUP
Find the Price of Items with VLOOKUP

Find the Price of Items with VLOOKUP

© Ted French

How the VLOOKUP Function Works

Excel's VLOOKUP function, which stands for vertical lookup, can be used to look up specific information located in a table of data or database.

VLOOKUP normally returns a single field of data as its output. How it does this is:

  1. you provide a name or lookup _value that tells VLOOKUP in which row or record of the data table to look for the desired data
  2. you supply the column number - known as the col_index_num - of the data you seek
  3. The function looks for the lookup _value in the first column of the data table
  4. VLOOKUP then locates and returns the information you seek from another field of the same record using the supplied column number

In the image shown above, VLOOKUP is used to find the unit price of an item based on its name. The name becomes the lookup value which VLOOKUP uses to find the price located in the second column.

Related Tutorial: Text only version of the tutorial.

The VLOOKUP Function's Syntax and Arguments

A function's syntax refers to the layout of the function and includes the function's name, brackets, and arguments.

The syntax for the VLOOKUP function is:

= VLOOKUP ( lookup_value , table_array , col_index_num , range_lookup )

lookup _value - (required) the value you want to find in the first column of the table_array

table_array - (required) this is the table of data that VLOOKUP searches to find the information you are after
- the table_array must contain at least two columns of data
- the first column normally contains the lookup_value

col_index_num - (required) the column number of the value you want found
- the numbering begins with the search_key column as column 1
- if index is set to a number greater than the number of columns selected in the range argument a #REF! error is returned by the function

 

range_lookup - (optional) indicates whether or not the range is sorted in ascending order
- the data in the first column is used as the sort key
- a Boolean value - TRUE or FALSE are the only acceptable values
- if omitted, the value is set to TRUE by default
- if set to TRUE or omitted and an exact match for the lookup _value is not found, the nearest match that is smaller in size or value is used as the search_key
-if set to TRUE or omitted and the first column of the range is not sorted in ascending order, an incorrect result might occur
- if set to FALSE, VLOOKUP only accepts an exact match for the lookup _value. If there are multiple matching values, the first matching value is returned
- if set to FALSE, and no matching value for the search_key is found a #N/A error is returned by the function

Example: Find the Unit Price of Items

As seen in the image above, following the steps in the tutorial topics below walk you through using the VLOOKUP function to find the unit price of items listed in a table of data.

Tutorial Topics

©2014 About.com. All rights reserved.