You are on page 1of 8

VLOOKUP - Item Info Extract

Column:
Order ID
10003

2
3
4
OrderDate Month Region
1/13/2011
Jan Midwest

6
5
Employee Item
Smith
Pencil

7
8
Units Cost
67 1.29

Order ID
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039

OrderDate Month Region


1/5/2011
Jan Midwest
1/6/2011
Jan New England
1/13/2011
Jan Midwest
1/15/2011
Jan Midwest
1/22/2011
Jan Midwest
1/23/2011
Jan Midwest
1/30/2011
Jan New England
2/1/2011
Feb Midwest
2/7/2011
Feb New England
2/9/2011
Feb Midwest
2/16/2011
Feb Midwest
2/18/2011
Feb New England
2/24/2011
Feb Midwest
2/26/2011
Feb Midwest
3/5/2011
Mar Midwest
3/7/2011
Mar West Coast
3/13/2011
Mar Midwest
3/15/2011
Mar West Coast
3/22/2011
Mar New England
3/24/2011
Mar Midwest
3/30/2011
Mar Midwest
4/1/2011
Apr New England
4/8/2011
Apr West Coast
4/10/2011
Apr Midwest
4/16/2011
Apr West Coast
4/18/2011
Apr Midwest
4/25/2011
Apr Midwest
4/27/2011
Apr New England
5/3/2011
May New England
5/5/2011
May Midwest
5/12/2011
May Midwest
5/14/2011
May Midwest
5/20/2011
May Midwest
5/22/2011
May West Coast
5/29/2011
May New England
5/31/2011
May Midwest
6/6/2011
Jun Midwest
6/8/2011
Jun New England
6/15/2011
Jun Midwest

Employee
Adams
Jones
Smith
Dwyer
Andrews
Stevenson
Parent
Smith
Jones
Adams
Dwyer
Jones
Stevenson
Dwyer
Smith
Black
Adams
Black
Jones
Adams
Dwyer
Jones
Black
Andrews
Black
Andrews
Adams
Howard
Jones
Adams
Andrews
Dwyer
Andrews
Thompson
Howard
Dwyer
Adams
Jones
Dwyer

Units
94
95
67
46
28
50
16
87
95
36
28
4
50
27
64
7
36
56
15
50
27
60
96
66
56
75
67
96
60
90
74
53
75
32
46
80
90
60
87

Item
Binder
Pencil
Pencil
Binder
Binder
Binder
Pen Set
Binder
Pencil
Pencil
Binder
Binder
Binder
Pen
Pen
Binder
Pencil
Pencil
Pen
Pen Set
Pen
Binder
Pen Set
Pencil
Pencil
Pencil
Pencil
Pen
Binder
Pencil
Pen Set
Pencil
Pencil
Pencil
Binder
Binder
Pencil
Binder
Binder

9
Total
86.43

Cost
Total
19.99 1879.06
1.99 189.05
1.29
86.43
8.99 413.54
4.99 139.72
19.99
999.5
15.99 255.84
15
1305
1.99 189.05
4.99 179.64
8.99 251.72
4.99
19.96
19.99
999.5
19.99 539.73
8.99 575.36
19.99 139.93
4.99 179.64
2.99 167.44
19.99 299.85
4.99
249.5
19.99 539.73
4.99
299.4
4.99 479.04
1.99 131.34
2.99 167.44
1.99 149.25
1.29
86.43
4.99 479.04
4.99
299.4
4.99
449.1
15.99 1183.26
1.29
68.37
1.99 149.25
1.99
63.68
8.99 413.54
8.99
719.2
4.99
449.1
8.99
539.4
15
1305

10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086

6/17/2011
6/23/2011
6/25/2011
7/2/2011
7/4/2011
7/10/2011
7/12/2011
7/19/2011
7/21/2011
7/27/2011
7/29/2011
8/5/2011
8/7/2011
8/13/2011
8/15/2011
8/22/2011
8/24/2011
8/30/2011
9/1/2011
9/8/2011
9/10/2011
9/16/2011
9/18/2011
9/25/2011
9/27/2011
10/3/2011
10/5/2011
10/12/2011
10/14/2011
10/20/2011
10/22/2011
10/29/2011
10/31/2011
11/6/2011
11/8/2011
11/15/2011
11/17/2011
11/23/2011
11/25/2011
12/2/2011
12/4/2011
12/10/2011
12/12/2011
12/19/2011
12/21/2011
12/27/2011
12/29/2011

Jun
Jun
Jun
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Jul
Aug
Aug
Aug
Aug
Aug
Aug
Aug
Sep
Sep
Sep
Sep
Sep
Sep
Sep
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Oct
Nov
Nov
Nov
Nov
Nov
Nov
Dec
Dec
Dec
Dec
Dec
Dec
Dec
Dec

Midwest
West Coast
Midwest
Midwest
New England
New England
New England
Midwest
Midwest
Midwest
New England
New England
Midwest
New England
New England
Midwest
West Coast
New England
Midwest
Midwest
Midwest
New England
New England
West Coast
West Coast
Midwest
Midwest
Midwest
West Coast
New England
New England
West Coast
Midwest
Midwest
New England
West Coast
Midwest
New England
Midwest
Midwest
Midwest
New England
Midwest
Midwest
Midwest
Midwest
New England

Stevenson
Thompson
Morgan
Dwyer
Jones
Jones
Howard
Stevenson
Morgan
Morgan
Parent
Jones
Stevenson
Howard
Jones
Morgan
Black
Parent
Smith
Stevenson
Dwyer
Jones
Jones
Black
Black
Smith
Morgan
Dwyer
Thompson
Jones
Jones
Black
Andrews
Morgan
Parent
Thompson
Adams
Jones
Stevenson
Andrews
Adams
Parent
Smith
Adams
Andrews
Stevenson
Parent

Desk
Pencil
Pencil
Binder
Pen Set
Binder
Binder
Binder
Pen Set
Pencil
Binder
Pen Set
Pen Set
Binder
Pencil
Pencil
Desk
Binder
Desk
Pen
Pencil
Pencil
Pen Set
Pencil
Pen
Desk
Binder
Binder
Binder
Pen Set
Pen
Pen
Pencil
Binder
Pen
Binder
Binder
Pen
Pen Set
Pencil
Binder
Pen
Pencil
Binder
Binder
Pen Set
Pen Set

5
32
90
4
62
60
29
7
55
90
81
50
42
29
35
66
3
81
2
96
7
35
16
53
76
2
28
80
57
16
64
76
14
28
15
57
11
64
96
14
94
15
67
11
28
96
74

125
1.99
4.99
4.99
4.99
8.99
1.99
19.99
12.49
4.99
19.99
4.99
23.95
1.99
4.99
1.99
275
19.99
125
4.99
1.29
4.99
15.99
1.29
1.99
125
8.99
8.99
19.99
15.99
8.99
1.99
1.29
8.99
19.99
19.99
4.99
8.99
4.99
1.29
19.99
19.99
1.29
4.99
4.99
4.99
15.99

625
63.68
449.1
19.96
309.38
539.4
57.71
139.93
686.95
449.1
1619.19
249.5
1005.9
57.71
174.65
131.34
825
1619.19
250
479.04
9.03
174.65
255.84
68.37
151.24
250
251.72
719.2
1139.43
255.84
575.36
151.24
18.06
251.72
299.85
1139.43
54.89
575.36
479.04
18.06
1879.06
299.85
86.43
54.89
139.72
479.04
1183.26

Syntax:

=VLOOKUP( lookup_value ,

table_array,

lookup_value:
table_array:

col_

The value to search in the first column of the table array. Lookup_value can be a value or a reference
This is a reference to a range or a range name.
The values in the first column of table_array are the values searched by lookup_value. These values c
col_index_num: The column number in table_array from which the matching value must be returned.
A col_index_num of 1 returns the value in the first column in table_array (same as the lookup_value)
A col_index_num of 2 returns the value in the second column in table_array, and so on.
range_lookup: A logical value that specifies whether you want VLOOKUP to find an exact match or an approximate m
If TRUE or omitted, an exact or approximate match is returned.
If an exact match is not found, the next largest value that is less than lookup_value is returned.
If FALSE, VLOOKUP will only find an exact match. In this case, the values in the first column of table_a
If there are two or more values in the first column of table_array that match the lookup_value, the f
If an exact match is not found, the error value #N/A is returned.

Sales Type
Book
Book
Book
Online

Line Item
Sales Revenue
Cost of Goods Sold
Marketing/Advertising
Net Profit

Year
2011
2011
2012
Total

Year Column
2
2
3
5

VLOOKUP
$
29,970
$
(18,000)
$
(8,994)
$
2,513

table_array,

col_index_num,

range_lookup )

Lookup_value can be a value or a reference.

s searched by lookup_value. These values can be text, numbers, or logical values.


ng value must be returned.
n in table_array (same as the lookup_value).
umn in table_array, and so on.
to find an exact match or an approximate match:

is less than lookup_value is returned.


se, the values in the first column of table_array do not need to be sorted.
e_array that match the lookup_value, the first value found is used.

Notes
Manual VLOOKUP formula - Does not change unless formula is changed.
Lookup Value Changes - Grab Line Item Automatically using direct reference
Column Index Number Changes - Grab Year Column Number Automatically using VLOOKUP()
Lookup Range Changes - Get Sheet/Range Reference using INDIRECT()

Excel Exposure
Book Sales
2011
Units Sold
Avg. Price per Unit
Avg. Cost per Unit

2012

2013

Total

$
$

3,000
9.99 $
6.00 $

4,000
14.99 $
9.00 $

5,000
19.99 $
12.00 $

Sales Revenue
Cost of Goods Sold
Gross Profit

$
$
$

29,970 $
(18,000) $
11,970 $

59,960 $
(36,000) $
23,960 $

99,950 $
(60,000) $
39,950 $

Marketing/Advertising
Professional Fees
Applied Rent
Interest & Taxes
Total Expenses

$
$
$
$
$

(8,994)
(5,996)
(100)
(3,548)
(18,638)

(14,993)
(9,995)
(100)
(5,945)
(31,033)

Net Profit

(4,496)
(2,997)
(100)
(1,751)
(9,344)

$
$
$
$
$

2,627 $

$
$
$
$
$

5,322 $

$
$
$
$
$

8,918 $

12,000
15.82
9.50
189,880
(114,000)
75,880
(28,482)
(18,988)
(300)
(11,244)
(59,014)
16,866

Excel Exposure
Online Sales
2011
Units Sold
Avg. Price per Unit
Avg. Cost per Unit

2012

2013

Total

$
$

1,500
5.00 $
3.00 $

2,000
5.00 $
3.00 $

2,500
5.00 $
3.00 $

6,000
5.00
3.00

Sales Revenue
Cost of Goods Sold
Gross Profit

$
$
$

7,493 $
(4,500) $
2,993 $

9,995 $
(6,000) $
3,995 $

12,497 $
(7,500) $
4,997 $

29,984
(18,000)
11,984

Marketing/Advertising
Professional Fees
Applied Rent
Interest & Taxes
Total Expenses

$
$
$
$
$

(1,124)
(749)
(100)
(408)
(2,381)

(1,499)
(1,000)
(100)
(559)
(3,157)

(1,875)
(1,250)
(100)
(709)
(3,933)

Net Profit

$
$
$
$
$

612 $

$
$
$
$
$

838 $

$
$
$
$
$

1,064 $

(4,498)
(2,998)
(300)
(1,675)
(9,471)
2,513

Excel Exposure
Other Sales
2011
Units Sold
Avg. Price per Unit
Avg. Cost per Unit

2012

2013

Total

$
$

200
5.00 $
3.00 $

500
5.00 $
3.00 $

600
5.00 $
3.00 $

Sales Revenue
Cost of Goods Sold
Gross Profit

$
$
$

999 $
(600) $
399 $

2,499 $
(1,500) $
999 $

2,999 $
(1,800) $
1,199 $

6,497
(3,900)
2,597

Marketing/Advertising
Professional Fees
Applied Rent
Interest & Taxes
Total Expenses

$
$
$
$
$

(150)
(100)
(100)
(20)
(369)

(375)
(250)
(100)
(110)
(834)

(450)
(300)
(100)
(140)
(990)

(975)
(650)
(300)
(269)
(2,193)

Net Profit

$
$
$
$
$

30 $

$
$
$
$
$

164 $

$
$
$
$
$

210 $

1,300
5.00
3.00

404

Sheets
Book
Online
Other

Line Items
Sales Revenue
Cost of Goods Sold
Gross Profit
Marketing/Advertising
Professional Fees
Applied Rent
Interest & Taxes
Total Expenses
Net Profit

Year
2011
2012
2013
Total

Vlookup Column
2
3
4
5

You might also like