Вы находитесь на странице: 1из 22

1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

VLOOKUP = V = Vertical
Why so common? Because everyone needs to look stuff up
VLOOKUP Delivers a value to a cell: Extract Match
VLOOKUP #N/A and IFERROR or IF
VLOOKUP and Data Validation
VLOOKUP as Formula Element
VLOOKUP with Named Range
HLOOKUP = H = Horizontal
VLOOKUP Delivers a value to a cell: Approximate Match
VLOOKUP with table on different sheet
VLOOKUP with table in different workbook
Show Full Record: Numbers above column header
Show Full Record: COLUMNS Function
Show Full Record: ROWS Function
Show Full Record: MATCH Functions
Two Lookup Values: Add join column as first column in table
Two Lookup Values: Join columns in formula and use CHOOSE function
Partial Text Lookup: LEFT and SEARCH Functions
Partial Text Lookup: MID Function
Partial Text Lookup: RIGHT Function
TRIM and VLOOKUP: Space in lookup value
TRIM and VLOOKUP: Space in 1st column of table
VLOOKUP with 3 lookup tables: CHOOSE Function
VLOOKUP: Two Way Lookup with VLOOKUP and MATCH
VLOOKUP: Variable Tax Rate, 3 VLOOKUPS in one formula
VLOOKUP: Dynamic Ranges with Table feature

VLOOKUP
V = Vertical
HLOOKUP
H = Horizontal
Why so common? Because everyone needs to look stuff up
Invoices
Boomerang
Bellen
Carlota
Majestic Beaut
Quad
Sunshine
Sunset
Tri-Fly
Outdoor Tri-Fly

Part Number
1000-165-B100
1001-540-C101
1002-394-M102
1003-307-Q103
1004-848-S104
1005-155-S105
1006-552-T106
1007-634-O107

Invoices
Part Number
Description
Flight Range (meters)
Price

1000-165-B100 1001-540-C101
1002-394-M102
Bellen
Carlota
Majestic Beaut
25
20
35
$26.95
$28.95
$31.95

Commission
Sales Amount
$0.00
$1,000.00
$2,500.00
$7,000.00
$10,000.00

Category
Sub Par
Par
Above Par
Very Good
Excellent

Flight Range (meters)

Price
25
20
35
20
30
40
1
5

Commission Paid
$0.00
$20.00
$100.00
$250.00
$700.00

Tax

Table 1 - Monthly Payroll Period - Percentage Method of Withholding


Married

$26.95
$28.95
$31.95
$35.95
$18.95
$20.95
$4.95
$8.95

Over -$0
$1,313
$2,038
$6,304
$9,844
$18,050
$31,725

Human Resources
ID
880-10000
880-10001
880-10002
880-10003
880-10004
880-10005
880-10006

But not over -Rate


$1,313
$2,038
$6,304
$9,844
$18,050
$31,725

Last
Leff
Piano
Coller
Stackpole
Lintz
Dudgeon
Hughs

First
Julianne
Milagros
Kathrine
Lonnie
Kurt
Penelope
Pearlie

0%
10%
15%
25%
28%
33%
35%

Tax from Previous


brackets
$0.00
$0.00
$72.50
$712.40
$1,597.40
$3,895.08
$8,407.83

E-mail
LeffJ@PBY.com
PianoM@PBY.com
CollerK@PBY.com
StackpoleL@PBY.com
LintzK@PBY.com
DudgeonP@PBY.com
HughsP@PBY.com

1003-307-Q103
Quad

1004-848-S104 1005-155-S105 1006-552-T106


Sunshine
Sunset
Tri-Fly
20
30
40
1
$35.95
$18.95
$20.95
$4.95

Rule
Zero Tax
10% of excess over $1,313
$72.50 + 15% of excess over $2,038
$712.40 + 25% of excess over $6,304
$1,597.40 + 28% of excess over $9,844
$3,895.08 + 33% of excess over $18,050
$8,407.83 + 35% of excess over $31,725

Phone
253-559-4034
253-553-4381
206-762-2195
253-764-6538
206-736-4510
253-452-9723
253-719-7600

1007-634-O107
Outdoor Tri=Fly
5
$8.95

VLOOKUP Delivers a value to a cell


Exact Match
Boomerang
Bellen
Carlota
Majestic Beaut
Quad
Sunshine
Sunset
Tri-Fly
Outdoor Tri-Fly

Part Number
1000-165-B100
1001-540-C101
1002-394-M102
1003-307-Q103
1004-848-S104
1005-155-S105
1006-552-T106
1007-634-O107

Flight Range (meters)

Boomerang

Price

Units

25
20
35
20
30
40
1
5

VLOOKUP #N/A and IFERROR or IF


Boomerang
Price

Units
3

VLOOKUP and Data Validation


Boomerang
Price

Units
3

VLOOKUP with Named Range


Boomerang
Price

Units
3

VLOOKUP as Formula Element


Boomerang
Units

Total
3

HLOOKUP
H = Horizontal
Description
Part Number
Flight Range (meters)
Price

Bellen
1000-165-B100

Boomerang
Carlota

Price

Carlota
1001-540-C101
25
$26.95

20
$28.95

Price
$26.95
$28.95
$31.95
$35.95
$18.95
$20.95
$4.95
$8.95
Total

Notes ==>

1st column is where VLOOKUP "looks" to figure out what row i


Tell VLOOKUP what value it should look up = 1st argument
Tell VLOOKUP where the table is = 2nd argument
Tell VLOOKUP what column holds the value you want to return
Tell VLOOKUP whether you are doing exact ( 0 ) or approximate

Total

Total
Alt, D, L = Data Validation

Total
Name Box = left side of formula bar
Ctrl + F3 = Name Manager

Majestic Beaut
1002-394-M102

Quad
Sunshine
Sunset
Tri-Fly
1003-307-Q103 1004-848-S104 1005-155-S105 1006-552-T106
35
20
30
40
1
$31.95
$35.95
$18.95
$20.95
$4.95

OOKUP "looks" to figure out what row in the table has the value it wants
ue it should look up = 1st argument
e table is = 2nd argument
umn holds the value you want to return to the cell = 3rd argument
you are doing exact ( 0 ) or approximate (leave argument blank) match = 4th argument

Product
Carlota
Sunshine
Majestic Beaut

formula bar

Outdoor Tri=Fly
1007-634-O107
5
$8.95

Units

Price
5
2
3

Total
28.95
18.95
31.95

VLOOKUP Delivers a value to a cell


Approximate Match

How VLOOKUP "sees" it


$0 <= Sales < $1,000
$1,000 <= Sales < $2,500
$2,500 <= Sales < $7,000
$7,000 <= Sales < $10,000
$10,000 >= Sales

Sales Amount
$0.00
$1,000.00
$2,500.00
$7,000.00
$10,000.00

Less than 1st value in table LOOKUP says: #N/A


1st column must be sorted biggest to smallest
leave 4th argument blank (default behavior)
Your Sales

Commission

Category
Commission Paid
Sub Par
$0.00
Par
$20.00
Above Par
$100.00
Very Good
$250.00
Excellent
$700.00

VLOOKUP with table on different sheet


Your Sales
Commission
$11,000.00
VLOOKUP with table in different workbook
Your Sales
Commission
$7,500.00

Sales Amount
$0.00
$1,000.00
$2,500.00
$7,000.00
$10,000.00

Category
Commission Paid
Sub Par
$0.00
Par
$20.00
Above Par
$100.00
Very Good
$250.00
Excellent
$700.00

Show Full Record: 4 methods


ID
880-10061
880-10060
880-10059
880-10058
880-10057
880-10056
880-10055

Last
Leff
Piano
Coller
Stackpole
Lintz
Dudgeon
Hughs

First
Julianne
Milagros
Kathrine
Lonnie
Kurt
Penelope
Pearlie

E-mail
LeffJ@PBY.com
PianoM@PBY.com
CollerK@PBY.com
StackpoleL@PBY.com
LintzK@PBY.com
DudgeonP@PBY.com
HughsP@PBY.com

Numbers above column header


ID

Last

First

E-mail

First

E-mail

First

E-mail

COLUMNS tells you how many columns. Expandable range.


ID
Last

ROWS tells you how many rows. Expandable range.


ID
Last
First
E-mail
Phone
MATCH Functions tells you the relative position of an item
ID
Last

Phone
253-559-4034
253-553-4381
206-762-2195
253-764-6538
206-736-4510
253-452-9723
253-719-7600

Phone

Phone

Phone

Two Lookup Values: 2 methods


SalesRep
Joe
Joe

State
CA
OR

ID

Join

SalesRep
Joe
Joe
Joe
Sioux
Sioux
Sioux
Chin
Chin

State
WA
OR
CA
AZ
NM
TX
AL
AK

Add join column as first column in table


Join columns in formula and use CHOOSE function
Array Formula = Ctrl + Shift + Enter
ID
JA5239658
JR4777905
JA5688589
SZ9891014
SM7283236
SX1797048
CL3782691
CK5456468

Partial Text Lookup: LEFT and SEARCH


ID
Price
Bellen-234-B25R
Carlota-345-C20R
Quad-765-Q20L

Partial Text Lookup: MID


ID
Price
Bellen-234-B25R
Carlota-345-C20R
Quad-765-Q20L

Partial Text Lookup: RIGHT


ID
Price
Bellen-234-B25R
Carlota-345-C20R
Quad-765-Q20L

ID
Bellen
Carlota
Quad

Price
$26.00
$23.00
$36.00

ID
234
345
765

ID
B25R
C20R
Q20L

Price
$26.00
$23.00
$36.00

Price
$26.00
$23.00
$36.00

TRIM and VLOOKUP: 2 examples


Boomerang
Bellen
Carlota
Majestic Beaut
Quad
Sunshine
Sunset
Tri-Fly
Outdoor Tri-Fly
Space in lookup value
Boomerang
Majestic Beaut
Quad
Sunshine
Sunset
Tri-Fly

Boomerang
Bellen
Carlota
Majestic Beaut
Quad
Sunshine
Sunset
Tri-Fly
Outdoor Tri-Fly
Space in 1st column of table
Boomerang
Majestic Beaut
Quad
Sunshine
Sunset
Tri-Fly

Part Number
Flight Range (meters)
1000-165-B100
1001-540-C101
1002-394-M102
1003-307-Q103
1004-848-S104
1005-155-S105
1006-552-T106
1007-634-O107

25
20
35
20
30
40
1
5

Price
$26.95
$28.95
$31.95
$35.95
$18.95
$20.95
$4.95
$8.95

25
20
35
20
30
40
1
5

Price
$26.95
$28.95
$31.95
$35.95
$18.95
$20.95
$4.95
$8.95

Price

Part Number
Flight Range (meters)
1000-165-B100
1001-540-C101
1002-394-M102
1003-307-Q103
1004-848-S104
1005-155-S105
1006-552-T106
1007-634-O107

Price
Array Formula = Ctrl + Shift + Enter

VLOOKUP with 3 lookup tables


Product
ABC
EDR
EDS
ABC
EDS

ABC
EDR
EDS

Units Sold Commission Rate


431
65
563
493
188

1
2
3

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%

VLOOKUP: Two Way Lookup


Income
Allowance
Tax

1900
3

Income/Allowances
0
100
500
1000
2000

0
$0.00
$1.00
$2.00
$3.00
$4.00

1
$1.00
$2.00
$3.00
$4.00
$5.00

2
$2.00
$3.00
$4.00
$5.00
$6.00

3
$3.00
$4.00
$5.00
$6.00
$7.00

4
$4.00
$5.00
$6.00
$7.00
$8.00

VLOOKUP: Variable Tax

Lookup Value
$0
$1,313.01
$2,038.01
$6,304.01
$9,844.01
$18,050.01
$31,725.01

Over -$0
$1,313
$2,038
$6,304
$9,844
$18,050
$31,725
Taxable Earnings
Tax

But not
over -Rate
$1,313
0%
$2,038
10%
$6,304
15%
$9,844
25%
$18,050
28%
$31,725
33%
35%

$2,500.00

$141.80

Tax from
Previous
brackets
$0.00
$0.00
$72.50
$712.40
$1,597.40
$3,895.08
$8,407.83

Rule
Zero Tax
10% of excess over $1,313
$72.50 + 15% of excess over $2,038
$712.40 + 25% of excess over $6,304
$1,597.40 + 28% of excess over $9,844
$3,895.08 + 33% of excess over $18,050
$8,407.83 + 35% of excess over $31,725

Product
Bellen
Carlota

Price
$25.00
$26.00

Product

Price

Вам также может понравиться