The Excel VLOOKUP Sample File Shown in The Additional Excel Resources Section
The Excel VLOOKUP Sample File Shown in The Additional Excel Resources Section
1. Download the Excel VLOOKUP sample file shown in the Additional Excel Resources section
Note: For this tutorial, we will be deleting information on this sheet and recreating the VLOOKUP
formula.
The workbook will have 2 sheets at the bottom: Voters and Party Codes. The first sheet is a
listing of registered voters and the second contains names of political parties.
Note: You can keep the column header "Politcal Party". We will keep the entries on the Party
Codes worksheet.
4. Place your cursor in cell D2 and choose Insert Function from the Formulas tab.
Note: VLOOKUP relies on 4 function arguments which are numbered above. The last item,
Range_lookup [4] is optional as it can be blank.
In this step, we're asking excel to lookup the contents of cell "c2". Notice how Excel displays the
cell's value of "A" to the right of the text box. This helps you check your entries.
Notice how Excel adds the worksheet name and range as you highlight an area.
As before, Excel builds out the cell's formula as we add the function arguments and shows the
value it read. For the cell C2, Excel is saying the Pcode of "A" translates to "Democratic"
Note: Excel also provides tips for the function arguments below the text boxes.
13. If you plan on copying this formula to other cells, you need to make a slight adjustment.
Click the Insert Function button again.
Note: You can make edits using the formula bar, but if you're just starting out, I find it easier to use
the dialog box.
15. Copy your formula to other cells in the column by dragging down.