CREATING A VLOOKUP
(in MS Excel 2010)
Dave Shannon - 05/08/13
CONTENTS
 What does a VLOOKUP do?
 The components of a VLOOKUP
 An example
 Summary
DSHANNON05/08/13
WHAT DOES A VLOOKUP DO?
 A VLOOKUP takes data from you, looks up another piece of data, and
returns it to you
 It is usually used to search a large amount of data and return results in a
simple visual format
 Some examples:
 Enter an employee name, receive HR details, sales figures
 Enter a site name and receive address details
 Enter a part number, receive stock level and price
DSHANNON05/08/13
VLOOKUP COMPONENTS
DSHANNON05/08/13
=VLOOKUP(lookup_value, table_array, col_index_num,[range_lookup])
VLOOKUP COMPONENTS
DSHANNON05/08/13
=VLOOKUP(lookup_value, table_array, col_index_num,[range_lookup])
tells Excel that a formula is coming up
=
VLOOKUP tells Excel which formula to expect
VLOOKUP COMPONENTS
DSHANNON05/08/13
=VLOOKUP(lookup_value, table_array, col_index_num,[range_lookup])
VLOOKUP COMPONENTS
DSHANNON05/08/13
=VLOOKUP(lookup_value, table_array, col_index_num,[range_lookup])
 The data you need to enter – It‟s best to put a cell number in here so you can
look up different items/names easily
 The cells where you want VLOOKUP to search. These can be in a different
sheet or workbook, but both need to be open
 A count across to the column that contains the data you want bringing back
 Whether you want just that precise number or want anything close. Usually you
will want a precise number
lookup_value
table_array
col_index_num
[range_lookup]
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Using a simple database
 Two VLOOKUP‟s will take part number, return Stock level and Price
 Cell created for entering Item Code
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Begin typing the formula in the result field
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Begin typing the formula in the result field
 Lookup_value appears bolded to assist you
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Begin typing the formula in the result field
 Lookup_value appears bolded to assist you
 Type “B3”, the cell where you want to enter the part number you want to look up
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Begin typing the formula in the result field
 Lookup_value appears bolded to assist you
 Type “B3”, the cell where you want to enter the part number you want to look up
 Type a comma and the bolded selection changes to table_array
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Click the first cell of the table – the cell number appears as part of the formula
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Click the first cell of the table – the cell number appears as part of the formula
 And drag to select the whole database
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Click the first cell of the table – the cell number appears as part of the formula
 And drag to select the whole database
 Type a comma to move to the next section: col_index_num
 This is where we count columns across to the result we want bringing back
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Type 4 for the col_index_num field, and a comma
 [range_lookup] appears bolded, and a drop down appears
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Type 4 for the col_index_num field, and a comma
 [range_lookup] appears bolded, and a drop down appears
 Select “FALSE” so that an exact match will be returned
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Type 4 for the col_index_num field, and a comma
 [range_lookup] appears bolded, and a drop down appears
 Select “FALSE” so that an exact match will be returned
 Close the brackets
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Type 4 for the col_index_num field, and a comma
 [range_lookup] appears bolded, and a drop down appears
 Select “FALSE” so that an exact match will be returned
 Close the brackets and press „Enter‟
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Enter an Item Code and Press „Enter‟, stock level appears
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Enter an Item Code and Press „Enter‟, stock level appears
 Price returned by adjusting col_index_num entry
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Enter an Item Code and Press „Enter‟, stock level appears
 Price returned by adjusting col_index_num
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Enter an Item Code and Press „Enter‟, stock level appears
 Price returned by adjusting col_index_num
 Works for all Item Codes
VLOOKUP EXAMPLE
DSHANNON05/08/13
 Enter an Item Code and Press „Enter‟, stock level appears
 Price returned by adjusting col_index_num
 Works for all Item Codes
VLOOKUP- SUMMARY
 Four elements:
 A cell to type your data in
 A selection to search in
 The number of columns over
 Exact or near match
*Electronic versions of this presentation are available on request
DSHANNON05/08/13
lookup_value
table_array
col_index_num
[range_lookup]
THANK YOU FOR YOUR TIME
QUESTIONS?
DSHANNON05/08/13

Creating a vlookup v1.0 050813