BBA100 - 5.4 Vlookup Functions
BBA100 - 5.4 Vlookup Functions
5.3 BASICS
FUNCTIONS &
FEATURES
Learning Outcomes
By the end of this lecture, YOU should be able to
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Vlookup Functions
• VLOOKUP is an Excel function to look up
data in a table organized vertically.
• VLOOKUP supports approximate and
exact matching, and wildcards (* ?) for
partial matches
Purpose
• Lookup a value in a table by matching on
the first column
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Vlookup Formulas
The VLOOKUP function moves
vertically down the rows of a lookup
table, looking for matching information in
the first column of the table
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Vlookup Syntax
• =VLOOKUP (lookup_value, table_array,
column_index_num, [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.
• column_index_num - The column in the
table from which to retrieve a value.
• range_lookup - [optional] TRUE =
approximate match (default). FALSE =
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Vlookup Syntax
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.
• column_index_num - The column in the
table from which to retrieve a value.
• range_lookup - [optional] TRUE =
approximate match (default). FALSE =
exact match.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Vlookup Syntax
Arguments
• The first column of table_array must
contain the lookup values to search.
The column_index_num argument
indicates column number of the value to
retrieve, where the first column
of table_array is column 1.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Vlookup Syntax
Arguments
• Finally, range_lookup controls match
behavior. If range_lookup is TRUE or 1,
VLOOKUP will perform
an approximate match. If range_lookup is
FALSE or zero, VLOOKUP will perform
an exact match.
Important: range_lookup is optional and
defaults to TRUE, so VLOOKUP will
perform an approximate match by default.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas
Typing in the Formula Bar
using Fill
Handle
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas
ALT +
ENTER
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas (IF
statement)
• Returns one value if a condition you specify
evaluates to TRUE and another value if it
evaluates to FALSE.
• Use IF to conduct conditional tests on values
and formulas.
• Syntax :
IF(logical_test,value_if_true,value_if_false)
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Excel Formulas (Nested
if)
• Syntax :
IF(logical_test,value_if_true,
IF( logical_test ,value_if_true, IF(logical_test,
value_if_true,value_if_false)))
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Calculate with Functions
A function is a built in formula in Excel. A function
has a name and arguments (the mathematical
function) in parentheses.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Calculate with Functions
To calculate a function:
• Click the cell where you want the function
applied Insert Function button
• Choose the function
Click OK
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Calculate with Functions
• Complete the Number 1 box with the first cell
• Complete the Number 2 box with the last cell
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Function Library
The function library is a large group of functions on
the Formula Tab of the Ribbon.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Relative, Absolute & Mixed References
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Absolute References
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Relative, Absolute & Mixed References
• Mixed referencing can also be used where
only the row OR column fixed. For example, in
the formula "=(A$1+$B2)", the row of cell A1 is
fixed and the column of cell B2 is fixed.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Auditing Features
Using the auditing tools you can examine the
relationship between cells and formular on your
worksheet and identify errors.
• When you use the auditing tools,
– tracer arrows point out cells and provide data
to formulas (the precedents) and
– the cells that contain formulas that refer to the
cells (the dependents).
– A box is drawn around the ranges of cells that
provide data to formular.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Auditing Features
To display the Formula Auditing toolbar
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Auditing Features -
Precedents & dependents)
• Precedents are cells referred to by other
formulae.
• A direct precedent is a cell being referred to by
the formula in the active cell.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Auditing Features
Precedents and dependents
• Dependents are cells containing
formulae that refer to other cells.
• A direct dependent is a cell containing a
formula that refers to the active cell.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Auditing Features - Tracer
arrows
Cell with a
formula error
• The error tracers display
arrows on the worksheet
to represent the flow of
computations
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Data validation
• To prevent invalid data entry in a worksheet.
• To restrict data entry to a certain range of
dates, limit choices by using a list, or make
sure that only positive whole numbers are
entered.
• Providing immediate help to instruct users and
clear messages when invalid data is entered is
also essential to make the data entry
experience go smoothly.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Data validation
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Conditional formatting
To help you visually explore and analyze data,
detect critical issues, and identify patterns and
trends.
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Conditional formatting
• Helps to answer these questions by making
it easy to highlight interesting cells or ranges
of cells, emphasize unusual values, and
visualize data by using data bars, color
scales, and icon sets.
• A conditional format changes the
appearance of a cell range based on a
condition (or criteria). If the condition is true,
the cell range is formatted based on that
condition; if the conditional is false, the cell
range is not formatted based on that
condition
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Conditional formatting
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Linking Worksheets
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Macros
• Recording a Marco
• Running a Macro
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Recording a Macro
• Click the View tab on
the Ribbon
• Click Macros
• Click Record Macro
• Enter a name (without
spaces)
• Enter a Shortcut Key
• Enter a Description
• Perform the Macro
• Click Marcos
• Click Stop Recording
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Running a Macro
• To run a Macro from the Keyboard shortcut,
simply press the keys that you have
programmed to run the Macro. Or you can
view all macros and run by:
• Click Macros
• Click View Macros
• Choose the Macro and click Run
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Sort and filter
• Basic Sorts
• Custom Sorts
• Filter
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
• Highlight the cells that will
be sorted
• Click the Sort & Filter
button on the Home tab
• Click the Sort Ascending
(A-Z) button or Sort
Descending (Z-A) button
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Custom Sorts
• Click the Sort & Filter button on the Home
tab
• Choose which column you want to sort by
first
• Click Add Level
• Choose the next column you want to sort
• Click OK
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Filtering
• To display only data that meets
certain criteria. To filter:
• Click the column or columns that
contain the data you wish to
filter
• On the Home tab, click on Sort
& Filter Filter button Click
the Arrow at the bottom of the
first cell
• Click the Text Filter Click the
Words you wish to Filter
• To clear the filter click the Sort &
Filter button Click Clear
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Customise the layout
• Split a Worksheet
• Freeze and Unfreeze Rows & Columns
• Hide and Unhide Worksheets
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Split a Worksheet
To split a worksheet into multiple resizable panes
for easier viewing of parts of a worksheet.
To split a worksheet:
• Select any cell in center of the worksheet you
want to split Click the Split button on the
View tab
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Hide Worksheets
To hide a worksheet:
• Select the tab of the sheet you
wish to hide
• Right-click on the tab
• Click Hide
To unhide a worksheet:
• Right-click on any worksheet tab
Click Unhide
• Choose the worksheet to unhide
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.
Question and Answer Session
Q&A
Copyright Goodheart-Willcox Co., Inc. May not be posted to a publicly accessible website.