Lookup Formulas
Lookup Formulas
Invoice Example:
Product Units Price
Majestic Beaut 5
Sunshine 2
Quad 10
Sunset 12
Subtotal
ns. Goal: Create Invoice.
Price
$26.95
$28.95
$31.95
$35.95
$18.95
$20.95
$4.95
$8.95
0
Example 1: Data Validation List. VLOOKUP, Exact Match. IF & ISBLANK functions. Goal: Create Invoice.
Invoice Example:
Product Units Price
Majestic Beaut 5 31.95
Sunshine 2 18.95
Quad 10 35.95
Sunset 12 20.95
Subtotal
ns. Goal: Create Invoice.
Price
$26.95
$28.95
$31.95
$35.95
$18.95
$20.95
$4.95
$8.95
808.55
Example 2: How to use VLOOKUP Exact Match, LEFT, MID and SEARCH to do a "Partial Text Lookup. Learn about Data Mismatc
ID
234
345
765
earn about Data Mismatch. Goal: Lookup Product Price.
Price
$26.00
$23.00
$36.00
Price
$26.00
$23.00
$36.00
Example 2: How to use VLOOKUP Exact Match, LEFT, MID and SEARCH to do a "Partial Text Lookup. Learn about Data Mismatc
ID
FALSE 234
345
765
earn about Data Mismatch. Goal: Lookup Product Price.
Price
$26.00
$23.00
$36.00
Price
$26.00
$23.00
$36.00
Example 3: VLOOKUP with Approximate Match Lookup. Cell Reference for Column Index Number. Goal: Get Rating and Comm
2
Employee Sales Rating
Sioux $7,598.00
Kim $68.00
Gigi $15,980.00
Franny $2,499.99
lumn Index Number. Goal: Get Rating and Commission.
3
Commission Paid
Example 3: VLOOKUP with Approximate Match Lookup. Cell Reference for Column Index Number. Goal: Get Rating and Comm
2
Employee Sales Rating
Sioux $7,598.00 Very Good
Kim $68.00 Sub Par
Gigi $15,980.00 Excellent
Franny $2,499.99 Par
lumn Index Number. Goal: Get Rating and Commission.
3
Commission Paid
250
0
700
20
Example 4: VLOOKUP with Approximate Match and MATCH functions with Exact Match. MATCH for Column Index Number. G
MATCH function is a lookup function.
MATCH function returns the relative position of an item in a list.
This method is dynamic: 1) columns can be in any order and 2) If you change input formula updates.
Commission Paid
Example 4: VLOOKUP with Approximate Match and MATCH functions with Exact Match. MATCH for Column Index Number. G
MATCH function is a lookup function.
MATCH function returns the relative position of an item in a list.
This method is dynamic: 1) columns can be in any order and 2) If you change input formula updates.
3
Employee Sales Commission Paid
Sioux $7,598.00 250
Kim $68.00 0
Gigi $15,980.00 700
Franny $2,499.99 20
act Match. MATCH for Column Index Number. Goal: Retrieve Rating & Commission.
2
Rating
Very Good
Sub Par
Excellent
Par
Example 5: Use MATCH to Compare Two Lists. Goal: Is an item in List 1 also in List 2?
Notes:
MATCH: reports relative position of item in a list
F4 key adds $ signs to lock range (make absolute).
ISNUMBER: reports TRUE when it sees a number
Has prospective customer made it into our master list due to our sales phone calls?
List 2 = Customers we have made sales calls to.
Master Customer List Prospective Customers
List 1 List 2
Fran's Produce Julie's Produce
Produce Fast And Fresh Health Choice Fruit
Veggies And Fruit Delight Fresh Delights
Fruit & Veggie Delights Healthy Garden Produce
Clean & Neat Produce CA Produce
Julie's Produce Best For U
Fruits And Nuts R Us Gigi's Produce
Table Ready Produce Fruit & Veggie Inc.
Freshy Produce Veggies And Fruit Delight
Veggie Are THE Way Delight & Health
Greens Delight Produce Fast And Fresh
Garden Fresh Garden Health
Garden Ready
Best Garden Produce ** Is Item In List use: ISNUMBER & MATCH
Fresh Produce Inc.
Fresh Delights
Down To Earth
Fruit & Veggie Health
Garden Fresh Produce
ers we have made sales calls to.
Has prospective customer made it into our master list due to our sales phone calls?
List 2 = Customers we have made sales calls to.
Master Customer List Prospective Customers
List 1 List 2
Fran's Produce Julie's Produce
Produce Fast And Fresh Health Choice Fruit
Veggies And Fruit Delight Fresh Delights
Fruit & Veggie Delights Healthy Garden Produce
Clean & Neat Produce CA Produce
Julie's Produce Best For U
Fruits And Nuts R Us Gigi's Produce
Table Ready Produce Fruit & Veggie Inc.
Freshy Produce Veggies And Fruit Delight
Veggie Are THE Way Delight & Health
Greens Delight Produce Fast And Fresh
Garden Fresh Garden Health
Garden Ready
Best Garden Produce ** Is Item In List use: ISNUMBER & MATCH
Fresh Produce Inc.
Fresh Delights
Down To Earth
Fruit & Veggie Health
Garden Fresh Produce
ers we have made sales calls to.
Use INDEX as a substitute for VLOOKUP when the value you want to return is to the
left of the lookup column.
Product Price Description
V Range $12.95 Flying Range is 10
Quad $39.95 Flying Range is 20
Weighted Sunset $40.00 Flying Range is 50
Weighted MB $45.00 Flying Range is 60
S Rang $65.00 Flying Range is 70
Long D $69.00 Flying Range is 80
Long D Squared $100.00 Flying Range is 85
Dan's Special $110.00 Flying Range is 110
Manu Magic $165.00 Flying Range is 160
ay, row_num tells INDEX what relative position to look at to retrieve a value. If you put 0 or omitted, it will get "all the rows" (whole colum
it will get "all the columns" (whole row).
2
the rows" (whole column).
Example 6: INDEX and MATCH functions to do a "Lookup Left". Goal: Given a flight range, lookup boomerang name in first colu
INDEX function: Can do many looks that VLOOKUP cannot
array argument = values that you want to retrieve. array can be a table, a column, or a row.
row_num argument = tells INDEX what row to look at to retrieve a value. If the array in a one-way array, row_num tells INDEX
column_num argument tells INDEX what column to look at to retrieve a value. If you put 0 or omitted, it will get "all the colum
Use INDEX as a substitute for VLOOKUP when the value you want to return is to the
left of the lookup column.
Product Price Description
V Range $12.95 Flying Range is 10
Quad $39.95 Flying Range is 20
Weighted Sunset $40.00 Flying Range is 50
Weighted MB $45.00 Flying Range is 60
S Rang $65.00 Flying Range is 70
Long D $69.00 Flying Range is 80
Long D Squared $100.00 Flying Range is 85
Dan's Special $110.00 Flying Range is 110
Manu Magic $165.00 Flying Range is 160
ay, row_num tells INDEX what relative position to look at to retrieve a value. If you put 0 or omitted, it will get "all the rows" (whole colum
it will get "all the columns" (whole row).
4
the rows" (whole column).
Example 7: INDEX and MATCH to find Vendor for Low Bid. INDEX array argument is a row. Goal: lookup vendor name for lowe
CHOOSE functions allows you to lookup things like different lookup tables.
=CHOOSE(index_num, value1,value2, …)
index_num is a number like 1, 2, 3, 4
value1 = lookup table 1
value2 = lookup table 2
value3 = lookup table 3
If index_num is 2, then the lookup table 2 will be returned by CHOOSE to the VLOOKUP function
ABC
Units Sold Commission Rate
0 1.00%
100 2.00%
200 4.00%
500 6.00%
EDR
Units Sold Commission Rate
0 1.00%
200 2.00%
300 4.00%
400 6.00%
EDS
Units Sold Commission Rate
0 2.00%
300 3.00%
500 4.00%
750 5.00%
Example 8: How to use VLOOKUP & CHOOSE to do a lookup to multiple tables. Goal: Lookup Commission rate from Multiple L
CHOOSE functions allows you to lookup things like different lookup tables.
=CHOOSE(index_num, value1,value2, …)
index_num is a number like 1, 2, 3, 4
value1 = lookup table 1
value2 = lookup table 2
value3 = lookup table 3
If index_num is 2, then the lookup table 2 will be returned by CHOOSE to the VLOOKUP function
ABC
Units Sold Commission Rate
0 1.00%
100 2.00%
200 4.00%
500 6.00%
EDR
Units Sold Commission Rate
0 1.00%
200 2.00%
300 4.00%
400 6.00%
EDS
Units Sold Commission Rate
0 2.00%
300 3.00%
500 4.00%
750 5.00%
Example 9: Multiple VLOOKUP functions. Goal: Calculate taxes from complex tax table.
Tax Example:
Married
Total Tax
Tax from Previous
brackets Rule
$0.00 Zero Tax
$0.00 10% of excess over $1,313
$72.50 $72.50 + 15% of excess over $2,038
$712.40 $712.40 + 25% of excess over $6,304
$1,597.40 $1,597.40 + 28% of excess over $9,844
$3,895.08 $3,895.08 + 33% of excess over $18,050
$8,407.83 $8,407.83 + 35% of excess over $31,725
Example 9: Multiple VLOOKUP functions. Goal: Calculate taxes from complex tax table.
Tax Example:
Married
A company that sells rolls of fence needs to calculate total revenue from a list of customer transactions and a pricin
Given the transactional data table with the number of rolls of fence sold for each transaction and the pricing table,
calculate total revenue and count the number of transactions that fell into each pricing category.
Data set with number of rolls of fence sold for each transaction:
Pricing Table:
A company that sells rolls of fence needs to calculate total revenue from a list of customer transactions and a pricin
Given the transactional data table with the number of rolls of fence sold for each transaction and the pricing table,
calculate total revenue and count the number of transactions that fell into each pricing category.
Data set with number of rolls of fence sold for each transaction:
Pricing Table: