5 - How To Use Excel VLOOKUP Function
5 - How To Use Excel VLOOKUP Function
We'll add our formula to cell E2, but you can add it to any blank cell. As with any formula, you'll start with an
equals sign (=). Then type the formula name. Our arguments will need to be in parentheses, so type an open
parenthesis. So far, it should look like this:
=VLOOKUP(
=VLOOKUP("Photo frame"
The second argument is the cell range that contains the data. In this example, our data is in A2:B16. As with any
function, you'll need to use a comma to separate each argument:
Note: It's important to know that VLOOKUP will always search the first column in this range. In this example, it
will search column A for "Photo frame". In some cases, you may need to move the columns around so the first
column contains the correct data.
The third argument is the column index number. It's simpler than it sounds: The first column in the range is 1,
the second column is 2, etc. In this case, we are trying to find the price of the item, and the prices are contained
in the second column. This means our third argument will be 2:
The fourth argument tells VLOOKUP whether to look for approximate matches, and it can be either TRUE or
FALSE. If it is TRUE, it will look for approximate matches. Generally, this is only useful if the first column has
numerical values that have been sorted. Because we're only looking for exact matches, the fourth argument
should be FALSE. This is our last argument, so go ahead and close the parentheses:
That's it! When you press Enter, it should give you the answer, which is 9.99.
How it works
Let's take a look at how this formula works. It first searches vertically down the first column (VLOOKUP is short
for vertical lookup). When it finds "Photo frame", it moves to the second column to find the price.
Microsoft Excel Training - How to Use Excel VLOOKUP Function 3
If we want to find the price of a different item, we can just change the first argument:
or: