Sunteți pe pagina 1din 23

Online Instruction Page

VLOOKUP Function

Related tutorials
INDEX / MATCH
Functions List

Related Excel Product


30 Excel Functions in 30 Days eBook Kit

Get weekly Excel tips, tutorials, videos, and news


Contextures Excel Newsletter

Table of Contents
1 Products 8 Orders
2 Text And Numbers 9 Orders_East
3 Invoice 10 Orders_West
4 Grades 11 Orders_Central
5 Report Card 12 Orders MATCH
6 First/Last 13 OrdersList
7 ProductSize 14 MyLinks
Code Product Price
A23 Paper 5.00
B14 Lamp 15.00
A27 Desk 75.00
C45 Pencil 0.50

A27 75.00 exact match

A27 5.00 approximate match

A28 #N/A VLookup -- not found

A28 IF and VLOOKUP

www.contextures.com 06/22/2020
Code Product Price Code Product Price
123 Paper 5.00 123 Paste 5.00
124 Lamp 15.00 124 Lamp 15.00
125 Desk 75.00 00125 Desk 75.00
126 Pencil 0.50 126 Pencil 0.50

123 Paper 124 Lamp


123 Paper 123 Paste
126 Pencil 123 Paste
123 Paper
123 Paper 00125 Desk
123 Paper 00125 Desk
00125 Desk

www.contextures.com 06/22/2020
Invoice # 2004-1101
Date

Code Product Unit Cost Quantity Total


A23 Paper $ 5.00 3 $ 15.00
A27 Desk $ 75.00 2 $ 150.00
$ -
$ -
$ -
$ -
$ -

Subtotal $ 165.00
Tax 10% $ 16.50
Total $ 181.50

www.contextures.com 06/22/2020
Score Grade
0 F
50 D
60 C
70 B
85 A

www.contextures.com 06/22/2020
Report Card: Dela Cruz, Juan B.

Subject Score Grade


English 77 B
Math 67 C
Communication 86 A
science 90 A
Filipino 88 A
P.E 92 A
History 85 A
Economics 79 B

www.contextures.com 06/22/2020
Select a Customer, to see sales records from SalesData sheet
Customer XYZ Inc First 38 =VLOOKUP($D$3,Table1,9,FALSE)
Records 5 Last 42 =VLOOKUP($D$3,Table1,9,TRUE)
Total Units 194 NOTE: TRUE can be omitted in Last formula

ID Row Customer Date Units Item


1 38 XYZ Inc 2-Jan 49 Clipboards <== formulas return data for selected customer
2 39 XYZ Inc 15-Jan 48 Pencils NOTE: SalesData MUST be sorted by Customer Name,
3 40 XYZ Inc 15-Jan 41 Pens or incorrect data will be returned
4 41 XYZ Inc 29-Jan 23 Binders
5 42 XYZ Inc 20-Feb 33 Pens
6
7
8
9
10
11
12
13
14
15
cted customer
rted by Customer Name,
NOTE: Sales list must be sorted by Customer Name
Customer Date Item Rep Colour Units Price Total Row
ABC Inc 1/2/2017 Binders Jones Black 3 19.99 59.97 1
ABC Inc 1/2/2017 Pens Jones Black 40 1.29 51.60 2
ABC Inc 1/2/2017 Pens Ho Red 4 1.29 5.16 3
ABC Inc 1/15/2017 Binders Gill Blue 28 19.99 559.72 4
ABC Inc 1/15/2017 Binders Ho Blue 32 19.99 639.68 5
ABC Inc 2/20/2017 Binders Jones Blue 28 19.99 559.72 6
ABC Inc 2/28/2017 ClipboardsHo Black 26 4.99 129.74 7
AnyCo 1/29/2017 ClipboardsJones Black 9 4.99 44.91 8
BigCo 1/2/2017 Binders Ho Blue 9 8.99 80.91 9
BigCo 1/2/2017 Binders Ho Black 39 19.99 779.61 10
BigCo 1/2/2017 ClipboardsGill Red 33 4.99 164.67 11
BigCo 1/2/2017 Pens Ho Blue 49 4.99 244.51 12
BigCo 1/15/2017 ClipboardsGill Blue 12 4.99 59.88 13
BigCo 1/29/2017 Pens Jones Black 3 4.99 14.97 14
BigCo 2/20/2017 Binders Jones Blue 36 19.99 719.64 15
BigCo 2/20/2017 Pencils Ho Blue 5 1.99 9.95 16
BigCo 2/28/2017 ClipboardsHo Black 49 4.99 244.51 17
Fresh Inc 1/29/2017 Pens Jones Blue 31 1.29 39.99 18
Mega Corp 1/2/2017 Binders Gill Black 21 15.00 315.00 19
Mega Corp 1/2/2017 Pencils Ho Red 29 1.99 57.71 20
Mega Corp 1/2/2017 Pens Gill Red 28 4.99 139.72 21
Mega Corp 1/15/2017 Pencils Jones Red 17 1.99 33.83 22
Mega Corp 1/29/2017 ClipboardsGill Red 38 4.99 189.62 23
Mega Corp 1/29/2017 Pencils Gill Black 49 1.99 97.51 24
Mega Corp 1/29/2017 Pens Jones Black 38 4.99 189.62 25
Mega Corp 2/20/2017 Pencils Ho Blue 37 1.99 73.63 26
Mega Corp 2/28/2017 Pens Jones Red 22 4.99 109.78 27
Mini Corp 1/15/2017 ClipboardsGill Blue 31 4.99 154.69 28
Mini Corp 1/15/2017 Pens Jones Red 8 4.99 39.92 29
Mini Corp 1/29/2017 Binders Gill Black 42 8.99 377.58 30
Mini Corp 2/28/2017 Pens Gill Black 9 1.29 11.61 31
NewCo 1/15/2017 Binders Gill Black 37 8.99 332.63 32
SmallCo 1/15/2017 Pens Jones Red 13 1.29 16.77 33
SmallCo 1/15/2017 Pens Jones Red 40 1.29 51.60 34
SmallCo 2/20/2017 Binders Jones Blue 50 8.99 449.50 35
SmallCo 2/20/2017 Binders Jones Blue 44 8.99 395.56 36
SmallCo 2/28/2017 Pens Ho Blue 25 4.99 124.75 37
XYZ Inc 1/2/2017 ClipboardsJones Red 49 4.99 244.51 38
XYZ Inc 1/15/2017 Pencils Jones Blue 48 1.99 95.52 39
XYZ Inc 1/15/2017 Pens Ho Blue 41 4.99 204.59 40
XYZ Inc 1/29/2017 Binders Ho Red 23 19.99 459.77 41
XYZ Inc 2/20/2017 Pens Ho Black 33 1.29 42.57 42
List for drop down on FirstLast sheet
CustomerList
ABC Inc
AnyCo
BigCo
Fresh Inc
Mega Corp
Mini Corp
NewCo
SmallCo
XYZ Inc
ProdSize Product Size Price Jacket Large 65.00
Shirt|Medium Shirt Medium 22.00
Shirt|Large Shirt Large 24.00
Jacket|Medium Jacket Medium 60.00
Jacket|Large Jacket Large 65.00

www.contextures.com 06/22/2020
View Current Orders From All Regions
Select an Order ID to see its details

OrderID Region OrderDate OrderAmt


4 Central February 12, 2017 $781.00 With IFERROR

4 Central February 12, 2017 $781.00 Without IFERROR

www.contextures.com 06/22/2020
With IFERROR

Without IFERROR

www.contextures.com 06/22/2020
OrderID Region OrderDate OrderAmt
1 East January 10, 2017 $1,122.00
7 East March 6, 2017 $4,453.00
9 East March 28, 2017 $1,305.00
13 East April 8, 2017 $2,708.00
16 East May 5, 2017 $1,502.00

www.contextures.com 06/22/2020
OrderID Region OrderDate OrderAmt
2 West January 18, 2017 $4,796.00
3 West February 9, 2017 $1,526.00
5 West February 19, 2017 $1,523.00
10 West February 21, 2017 $2,068.00
14 West April 21, 2017 $1,597.00

www.contextures.com 06/22/2020
OrderID Region OrderDate OrderAmt
4 Central February 12, 2017 $781.00
8 Central March 14, 2017 $2,976.00
11 Central March 31, 2017 $4,145.00
17 Central May 15, 2017 $3,979.00
18 Central May 15, 2017 $2,044.00

www.contextures.com 06/22/2020
Use MATCH to Find Column Number
2 =MATCH(C5,$Orders_ALL.$A$1:$D$1,0)

OrderID Region OrderDate OrderAmt <=== Headings in row 5 are linked to heading cells in look
2 West 18-Jan $1,551.00 Simple VLOOKUP -- column numbers typed in formul

3 West 9-Feb $700.00 With Cell References

3 West 9-Feb $700.00 With Table References

This can prevent problems if new columns


are added in the lookup table
or if the lookup columns are rearranged

www.contextures.com 06/22/2020
d to heading cells in lookup table
umbers typed in formula

www.contextures.com 06/22/2020
OrderID Region OrderDate OrderAmt Region
1 East 10-Jan 1,329.00 2 =MATCH(F1,$A$1:$D$1,0)
2 West 18-Jan 1,551.00
3 West 9-Feb 700.00
4 Central 12-Feb 1,377.00
5 West 19-Feb 757.00
7 East 6-Mar 1,465.00
8 Central 14-Mar 589.00
9 East 28-Mar 1,230.00
10 West 21-Feb 690.00
11 Central 31-Mar 1,317.00
13 East 8-Apr 988.00
14 West 21-Apr 189.00
16 East 5-May 1,333.00
17 Central 15-May 1,848.00
18 Central 15-May 1,594.00

www.contextures.com 06/22/2020
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

www.contextures.com 06/22/2020
Contextures Products
Pivot Power Premium Add-in
UserForms for Data Entry ebook Kit
Contextures Excel Tools Add-in
Data Entry Search Popup
Data Entry Popup
30 Excel Functions in 30 Days eBook Kit

Contextures Sites & News


Contextures Excel Newsletter
Contextures Excel Tips Website
Contextures Excel Blog
Excel Pivot Tables Blog

Other Excel Products


Contextures Recommends

www.contextures.com 06/22/2020
Time-saving tools for pivot table power users
Step by step instructions and videos
Make instant backups, sort sheets, and many more tools
Makes data entry easier when choosing from long list
Select single or multiple items from a listbox, to enter in a single cell
Sample workbook and easy to follow user guide for key Excel functions

Weekly Excel tips, tutorials, videos, and news


Hundreds of tutorials, tips and sample files
Read the Excel tutorials and share your comments
Pivot table tutorials and tips, with comments and questions

Other Excel tools and training, recommended by Debra

www.contextures.com 06/22/2020

S-ar putea să vă placă și