Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,730 --> 00:00:13,230
In this lesson, we're going to learn how to look up information using some of the best loved functions
2
00:00:13,230 --> 00:00:20,310
in Excel and those would be look up functions and probably the most well known lookup function is V
3
00:00:20,310 --> 00:00:21,750
look up and vena copies.
4
00:00:21,750 --> 00:00:27,180
One of those functions that you'll always see at the top of the list when it comes to most useful functions
5
00:00:27,180 --> 00:00:29,790
or functions that everybody should know.
6
00:00:30,450 --> 00:00:34,800
And that's because you can use fee lookup in so many different scenarios.
7
00:00:35,010 --> 00:00:39,940
Now, when it comes to using V lookup, there are two different ways that you can use it.
8
00:00:39,960 --> 00:00:43,590
You can do an exact match or you can do an approximate match.
9
00:00:44,250 --> 00:00:49,770
And in this case, we're going to start out by taking a look at the more common of those two, which
10
00:00:49,770 --> 00:00:51,570
is V lookup exact match.
11
00:00:52,470 --> 00:00:58,350
Now, before we get on to how you construct a V lookup, let's first make sure that we all understand
12
00:00:58,560 --> 00:01:02,280
what exactly a V lookup is and how it can be useful.
13
00:01:02,460 --> 00:01:10,080
So I've just got a little example of a V look up on this page, so I have a small data table which contains
14
00:01:10,080 --> 00:01:11,250
some order numbers.
15
00:01:11,460 --> 00:01:16,080
The items that these order numbers relate to and then the price of those items.
16
00:01:16,920 --> 00:01:23,310
And what I've done over here is I've constructed a little data validation dropdown list for all of the
17
00:01:23,310 --> 00:01:24,570
different order numbers.
18
00:01:25,380 --> 00:01:32,250
And what I can do here is select an order number from this list and it's going to return the item and
19
00:01:32,250 --> 00:01:32,980
the price.
20
00:01:33,210 --> 00:01:38,910
And if I click on any of these cells just here, notice in the formula bar, I'm actually using a V.
21
00:01:38,910 --> 00:01:45,120
Look up now with this formula was actually doing is it's basically saying look up, whatever value we
22
00:01:45,120 --> 00:01:54,840
have in Cell G three, look it up in this table over here and then return the information from column
23
00:01:54,840 --> 00:02:00,990
number two and then the Veilleux Cup underneath is basically doing exactly the same thing, but it's
24
00:02:00,990 --> 00:02:05,010
saying instead, return the information in column number three.
25
00:02:05,850 --> 00:02:08,100
So that is how V lookup works.
26
00:02:08,340 --> 00:02:10,140
Now, a couple of really important points.
27
00:02:10,140 --> 00:02:14,370
When you're working with V, look up what you're using as your look up value.
28
00:02:14,970 --> 00:02:21,960
So for us in this example, that is the value in Cell G three, it has to exist in the table of data
29
00:02:22,650 --> 00:02:29,310
because without the lookup value, exon doesn't know which of these results it needs to return.
30
00:02:29,580 --> 00:02:32,110
So that is basically how a V lookup works.
31
00:02:32,130 --> 00:02:35,760
So now let's look at how we construct it using a different example.
32
00:02:35,880 --> 00:02:40,950
Now, if we jump across to the next worksheet, you can see that I have on here just a few different
33
00:02:40,950 --> 00:02:41,820
part numbers.
34
00:02:42,330 --> 00:02:47,730
And currently, the description and the unit price columns are blank.
35
00:02:47,940 --> 00:02:54,630
And then on the third worksheet, I have eight parts catalog, and this contains the part numbers in
36
00:02:54,630 --> 00:02:59,070
Column A, the descriptions in Column B and the price and column C.
37
00:02:59,910 --> 00:03:06,180
So basically, what I want to do here is I want to use the part number as the lookup value because this
38
00:03:06,180 --> 00:03:09,870
is the column that is common between these two tables.
39
00:03:10,620 --> 00:03:18,030
I want to look up the part number in the parts catalog and then I want to return either the description
40
00:03:18,300 --> 00:03:21,090
or the price, depending on which one I'm doing.
41
00:03:21,240 --> 00:03:23,100
So let's construct our V look up.
42
00:03:23,250 --> 00:03:27,270
Now, the first thing that we want to return here is the description.
43
00:03:27,270 --> 00:03:29,910
For part, number one nine two three two.
44
00:03:30,150 --> 00:03:32,940
So I'm going to type in equals v.
45
00:03:32,940 --> 00:03:33,360
Look up.
46
00:03:33,600 --> 00:03:35,400
Let's take a look at our arguments.
47
00:03:35,640 --> 00:03:38,730
The first argument here is the look up value.
48
00:03:38,970 --> 00:03:42,420
So that's the piece of information that is common between the two tables.
49
00:03:43,020 --> 00:03:46,350
So for us, the part number is I look up value.
50
00:03:47,760 --> 00:03:51,480
We then need to specify where we're looking up this part number.
51
00:03:51,720 --> 00:03:53,580
So what is the table array?
52
00:03:53,880 --> 00:03:56,960
It might be that you have your table in the same spreadsheet, and that is fine.
53
00:03:56,970 --> 00:03:58,080
You can just select it.
54
00:03:58,590 --> 00:04:02,870
If I jump across two parts catalog, I can select this entire table.
55
00:04:04,930 --> 00:04:10,870
And that is my table, and right now I'm going to go to the formula bar to continue my editing and notice
56
00:04:10,870 --> 00:04:16,720
what I have in that formula bar now because my table is on a different worksheet, it's put in the worksheet
57
00:04:16,720 --> 00:04:19,720
name parts catalog and then the cell range.
58
00:04:21,160 --> 00:04:28,450
I now need to specify the column index number, and that is basically the column of information that
59
00:04:28,450 --> 00:04:29,470
we want to return.
60
00:04:30,310 --> 00:04:35,890
Now we're looking up the description first of all, and this is a really important point about V. Look
61
00:04:35,890 --> 00:04:43,270
up when it comes to the column index number V lookup numbers, columns in the table from left to right.
62
00:04:43,960 --> 00:04:49,330
So part number would be column one, description column two and price column three.
63
00:04:50,080 --> 00:04:58,300
So if we want to return the description, we're returning column number two and our final argument,
64
00:04:58,300 --> 00:05:01,140
which is an optional argument because it's in brackets.
65
00:05:01,150 --> 00:05:02,890
Is it true or false argument?
66
00:05:03,560 --> 00:05:08,680
And what we select here determines if we're doing an approximate match or an exact match.
67
00:05:08,710 --> 00:05:15,910
Now we're going to do an exact match because we exactly want to match the part number in the table so
68
00:05:15,910 --> 00:05:18,670
we can have a false argument on the end here.
69
00:05:19,090 --> 00:05:22,000
Or alternatively, we could just put zero.
70
00:05:22,120 --> 00:05:27,040
That would also do an exact match or because this is an optional argument.
71
00:05:27,310 --> 00:05:33,370
I don't even need to have that on the end because the default behavior for V lookup is to do an exact
72
00:05:33,370 --> 00:05:33,760
match.
73
00:05:34,330 --> 00:05:35,740
So I'm going to leave it off.
74
00:05:35,740 --> 00:05:40,180
Let's hit enter and it brings back that description information.
75
00:05:40,840 --> 00:05:45,670
Now I'm going to widen out this column a little bit, and I think I'm going to wrap this text around
76
00:05:45,670 --> 00:05:47,590
just so it doesn't take up so much room.
77
00:05:47,830 --> 00:05:51,400
Let's do the same thing, but let's do it for unit price instead.
78
00:05:52,150 --> 00:05:55,630
So we're basically going to construct the V look up in exactly the same way.
79
00:05:55,660 --> 00:05:58,990
It's just the column that we're returning that is different.
80
00:05:59,620 --> 00:06:03,460
So this time we want to return column number three.
81
00:06:05,110 --> 00:06:08,410
So equals v look up, look up.
82
00:06:08,410 --> 00:06:10,270
Value is still the part number.
83
00:06:11,050 --> 00:06:16,390
Our table array is our parts catalog, and I'm going to show you a simpler way of doing this in a moment.
84
00:06:18,250 --> 00:06:22,450
Let's select the entire table and go up to continue editing in the formula bar.
85
00:06:23,290 --> 00:06:29,680
The column index number where we want to return the information from column three and we're exactly
86
00:06:29,680 --> 00:06:36,960
matching that part number so we can have false zero or nothing on the end that hit enter.
87
00:06:37,300 --> 00:06:39,250
And there we get that unit price.
88
00:06:40,000 --> 00:06:44,860
Now you might want to do a little bit of messing around with the formatting of this cell, but that
89
00:06:44,860 --> 00:06:47,440
is basically how Vila Culp works.
90
00:06:47,770 --> 00:06:53,860
Now, if I was to try and copy these formulas down, they're actually not going to work correctly because
91
00:06:53,860 --> 00:06:58,810
I haven't locked the cell range, so I know it looks like they're working fine.
92
00:06:58,840 --> 00:07:04,930
It's actually returning the wrong results down here from the table because I didn't lock the cell references.
93
00:07:04,930 --> 00:07:09,130
So as I dragged down, this entire table is moving down as well.
94
00:07:09,940 --> 00:07:16,630
So a way that I like to do this, I find this a lot easier is if I'm doing a V lookup in general, I
95
00:07:16,630 --> 00:07:20,350
will make my table of data a named range.
96
00:07:21,040 --> 00:07:24,640
So let me just very quickly do these again and show you how that works.
97
00:07:24,850 --> 00:07:31,840
So I'm going to go to my parts catalog, control a to select everything, and in the name box, I'm
98
00:07:31,840 --> 00:07:36,570
going to call this parts under skull catalog.
99
00:07:36,640 --> 00:07:40,840
Now, by naming this range, it makes your V look up a lot easier to construct.
100
00:07:41,470 --> 00:07:43,210
So let's go to V look up.
101
00:07:43,660 --> 00:07:44,140
I look up.
102
00:07:44,140 --> 00:07:47,740
Value is the part number, a table array.
103
00:07:48,100 --> 00:07:52,360
Well, this time I don't need to jump across to the other worksheet and select that range.
104
00:07:52,360 --> 00:07:58,180
I can simply press the f three key on my keyboard, and it's going to bring up all the named ranges
105
00:07:58,180 --> 00:07:59,770
that I have in this workbook.
106
00:07:59,980 --> 00:08:01,900
There is mine parts catalog.
107
00:08:01,900 --> 00:08:02,820
Let's select it.
108
00:08:03,220 --> 00:08:08,620
And the cool thing about this is that when you create a named range, it's basically very similar to
109
00:08:08,620 --> 00:08:10,930
locking the cells so they're never going to move.
110
00:08:11,170 --> 00:08:12,850
Column index number is two.
111
00:08:13,360 --> 00:08:15,850
And we're doing an exact match.
112
00:08:16,720 --> 00:08:22,870
Close the bracket control center and then I can double click to copy down and my results are correct.
113
00:08:23,530 --> 00:08:27,430
Let's just do this again for the unit price, look up value.
114
00:08:27,460 --> 00:08:32,650
Here's part number F three to pull up my name ranges.
115
00:08:32,920 --> 00:08:37,600
Let's select the parts catalog the column we're pulling back.
116
00:08:37,990 --> 00:08:45,340
This time is column number three, and we want to do a false argument on the end or a zero or absolutely
117
00:08:45,340 --> 00:08:45,850
nothing.
118
00:08:46,030 --> 00:08:47,050
It's all good.
119
00:08:47,590 --> 00:08:49,930
Double click to copy down.
120
00:08:50,410 --> 00:08:58,060
Now, one thing to note here is take a look at this part No, I have an Arar's in these cells.
121
00:08:58,720 --> 00:09:04,690
Now I'm going to hazard a guess that I've got these errors because this part number doesn't exist in
122
00:09:04,690 --> 00:09:05,320
the catalog.
123
00:09:05,950 --> 00:09:09,640
So if I want to do a quick check, I can jump across to my parts catalog.
124
00:09:09,910 --> 00:09:15,820
I'm going to do a control f for find, and I'm going to try and find that part number one two three
125
00:09:15,820 --> 00:09:16,480
four five.
126
00:09:17,420 --> 00:09:18,260
Fine, next.
127
00:09:18,830 --> 00:09:20,000
It can't find it.
128
00:09:20,420 --> 00:09:23,510
So that is why I'm guessing that an error.
129
00:09:23,690 --> 00:09:28,550
Now, as we saw in the previous lesson, when we were talking about error checking, I might want to
130
00:09:28,550 --> 00:09:32,570
tidy these errors up a little bit by adding in some error handling.
131
00:09:32,720 --> 00:09:35,990
So let's click on that first formula up in the formula bar.
132
00:09:36,020 --> 00:09:40,610
This isn't an error, so I'm going to use the F and a function.
133
00:09:41,570 --> 00:09:47,150
The value is going to be generated by the V look up, and I'm going to make this a bit more meaningful
134
00:09:47,150 --> 00:09:52,970
by just adding onto the end here, parts not found.
135
00:09:53,360 --> 00:09:57,380
So anyone looking at this spreadsheet is going to know that that is the reason.
136
00:09:58,430 --> 00:10:00,860
What we don't have a description and unit price.
137
00:10:01,760 --> 00:10:08,240
Let's do the same for this one up to the formula bar, if any, click at the end.
138
00:10:08,720 --> 00:10:14,000
And this time I'm going to say price not found.
139
00:10:14,990 --> 00:10:19,880
Close the bracket control enter and then I can double click to copy down.
140
00:10:20,120 --> 00:10:23,560
And now this table doesn't look like it includes errors.
141
00:10:23,570 --> 00:10:25,070
We've added some meaning.
142
00:10:25,310 --> 00:10:32,030
So that is how you do a v lookup using that exact match option, that false argument on the end.
143
00:10:32,690 --> 00:10:37,220
In the next lesson, I'm going to show you another example, but this time we're going to be doing an
144
00:10:37,220 --> 00:10:40,550
approximate match using the true argument on the end.
14818
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.