Spreadsheet Skills in Finance: Reference Functions
Spreadsheet Skills in Finance: Reference Functions
Spreadsheet Skills in Finance: Reference Functions
Reference functions
Prepared by Pamela Peterson Drake
Reference or lookup functions are used to locate data in large databases. For example, if you create a database of financial data and
identify companies by their ticker symbol, you can then use the ticker symbol as the look-up value in the reference functions.
Function
Use
INDEX(array,row_num,column_num)
Finds the value in a cell that is the intersection of the specified row and
column.
HLOOKUP(lookup_value,table_array,row_number,range_lookup) Search a row for a match to the lookup_value, then provide information
in a specified row in that column.
VLOOKUP(lookup_value,table_array,col_num,range_lookup)
MATCH(look_value,Lookup_array,match_type)
INDIRECT(cell references)
HLOOKUP v. VLOOKUP
HLOOKUP
Find column Find row
Find the Sales for the company named in A1, first using MATCH to determine the row, and then using HLOOPKUP to go to the column
and then the matching row.
A
1
2
3
4
5
6
Pear
B
C
=HLOOKUP(B3,$A$3:$C$6,C1+1,TRUE) =MATCH("Pear",$A$4:$A$6,0)
Company
Apple
Pear
Peach
Sales
$1,000
$500
$250
Net income
$30
$10
$20
VLOOKUP
Find the Sales for the company named in cell A1
1
2
3
4
5
6
A
Pear
B
=VLOOKUP($A$1,$a$3:$c$6,2,TRUE)
Company
Apple
Pear
Peach
Sales
$1,000
$500
$250
Net income
$30
$10
$20