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:10,800
In this exercise, I'd like you to practice some of the skills that you've learned in this section on
2
00:00:10,800 --> 00:00:12,270
formula auditing.
3
00:00:13,350 --> 00:00:17,850
So the first thing I'd like you to do is just to fix the errors in the spreadsheet.
4
00:00:18,540 --> 00:00:23,820
So the top here, we have four little tables and you can see that we're getting some name errors and
5
00:00:23,820 --> 00:00:25,530
also an error.
6
00:00:26,250 --> 00:00:31,920
So I'd like you to take a look at these errors, see what's going wrong and see if you can fix them.
7
00:00:32,130 --> 00:00:38,340
Next, I'd like you to create a V lookup formula that returns the product and price based on the order
8
00:00:38,340 --> 00:00:40,410
number from the fruitless table.
9
00:00:41,130 --> 00:00:43,310
So I'm talking about these little headings down here.
10
00:00:43,320 --> 00:00:49,440
We have some order numbers and we have a product column and a price column, the currently blank.
11
00:00:50,220 --> 00:00:57,030
So I'd like you to create a V lookup formula that looks at the data on the fruit list worksheet and
12
00:00:57,030 --> 00:01:02,040
again, just a very small data table and returns the product and the price.
13
00:01:02,370 --> 00:01:06,450
And if when you're doing this, you happen to get some kind of error.
14
00:01:06,780 --> 00:01:12,600
I'd like you to trace the errors to see which part of the formula is producing the error.
15
00:01:13,650 --> 00:01:18,810
Once you've established that, I'd like you to add in some error handling to the formula.
16
00:01:19,110 --> 00:01:25,950
So the message says something more meaningful other than and a now is the time to pause the video and
17
00:01:25,950 --> 00:01:26,700
give that a go.
18
00:01:27,210 --> 00:01:30,330
If you'd like to see my answer, then please keep watching.
19
00:01:30,630 --> 00:01:34,920
So the first thing we need to do here is fix the issues in this spreadsheet.
20
00:01:35,730 --> 00:01:40,080
So if we take a look at this first little table, we have a name error.
21
00:01:40,740 --> 00:01:45,330
Now, if I click on here and take a look at the formula.
22
00:01:45,630 --> 00:01:50,070
Notice here that I have accidentally spell the name of the formula wrong.
23
00:01:50,520 --> 00:01:53,520
I've got average x instead of average.
24
00:01:53,850 --> 00:01:59,250
Now, if I wasn't sure if I got the name of the formula wrong, remember I could always use my error
25
00:01:59,250 --> 00:02:02,880
checking utilities on the formulas ribbon.
26
00:02:03,180 --> 00:02:10,410
So if I click on Evaluate Formula and step into this formula or evaluate this formula, it's showing
27
00:02:10,410 --> 00:02:13,980
me exactly where the error lies in this formula.
28
00:02:13,990 --> 00:02:17,760
So it's replaced average X with the name error.
29
00:02:18,360 --> 00:02:24,360
So I know the issue lies with this part of the formula and not the sell references, so I'm going to
30
00:02:24,360 --> 00:02:26,010
go into my formula bar.
31
00:02:26,040 --> 00:02:31,200
Let's just remove the X enter and now my formula is working.
32
00:02:32,250 --> 00:02:33,840
Let's take a look at this next one.
33
00:02:34,350 --> 00:02:36,770
Let's click on the cell where we have the name Arrow.
34
00:02:36,990 --> 00:02:41,460
And if I take a look in the formula bar, I can see it's doing a sum of a named range.
35
00:02:42,240 --> 00:02:45,360
Now, do I have any named ranges in this workbook?
36
00:02:46,020 --> 00:02:47,910
Let's click the dropdown and see.
37
00:02:48,450 --> 00:02:49,410
Well, yes, I do.
38
00:02:49,410 --> 00:02:57,000
I have one called fruit list, but that relates to the table that we have on the fruit list worksheet.
39
00:02:57,210 --> 00:03:02,550
So the named range that I'm using to perform this, some calculation isn't actually valid.
40
00:03:02,820 --> 00:03:04,500
Now there's a couple of things I could do here.
41
00:03:04,500 --> 00:03:10,830
I could replace the named range with the actual cell references, or I could quickly create a named
42
00:03:10,830 --> 00:03:12,660
range called sales.
43
00:03:13,230 --> 00:03:14,370
So that's what I'm going to do.
44
00:03:14,550 --> 00:03:18,270
I'm going to select all of these cells into the name box.
45
00:03:18,450 --> 00:03:23,700
Let's call them sales enter and straight away my formula updates.
46
00:03:24,090 --> 00:03:27,360
Now, the next one is an a error.
47
00:03:27,480 --> 00:03:27,650
No.
48
00:03:27,660 --> 00:03:32,490
If I click on this and take a look up in the formula bar, I could see that we've got a v look up going
49
00:03:32,490 --> 00:03:32,970
on here.
50
00:03:33,810 --> 00:03:34,800
So what's it doing?
51
00:03:34,800 --> 00:03:38,100
It's looking up what we have in a 15.
52
00:03:38,820 --> 00:03:46,320
It's looking it up in this table and it's returning the price column and I'm getting an NRA.
53
00:03:47,010 --> 00:03:48,510
Now, why is that?
54
00:03:48,930 --> 00:03:54,900
Well, if we take a look at the look up value notice that I've spelt the word check in wrong, there's
55
00:03:54,900 --> 00:03:56,760
an extra eye in there.
56
00:03:57,540 --> 00:04:02,820
So the V lookup formula can't find the word chicken in this table.
57
00:04:03,060 --> 00:04:04,770
Now there are a couple of things I could do here.
58
00:04:04,770 --> 00:04:10,770
The most obvious one is just to remove the spelling error from the look up value, but I could also
59
00:04:10,770 --> 00:04:13,290
add some error handling in here as well.
60
00:04:13,440 --> 00:04:17,310
Now, I'm not going to do that because it's not really appropriate in this case because the word is
61
00:04:17,310 --> 00:04:18,420
actually spelt wrong.
62
00:04:18,900 --> 00:04:19,950
So let's double click.
63
00:04:20,100 --> 00:04:26,850
Let's remove the I hit enter, and now that price is correct.
64
00:04:27,120 --> 00:04:32,910
Now finally, the bottom here I asked you to create a V lookup formula that returns the product and
65
00:04:32,910 --> 00:04:36,510
price based on the order number from the fruitless table.
66
00:04:36,780 --> 00:04:37,920
So I'm going to click here.
67
00:04:38,130 --> 00:04:40,050
Let's do equals v look up.
68
00:04:40,410 --> 00:04:48,420
My lookup value is the order number 824 I'm looking at up in the fruit list table now.
69
00:04:48,420 --> 00:04:52,290
I could jump across to the fruit this worksheet and select everything.
70
00:04:52,590 --> 00:04:54,870
I've actually already named this range.
71
00:04:54,870 --> 00:05:00,270
It's called fruit list and you'll see that it's updated in the Formula Fruit Underscored list.
72
00:05:00,840 --> 00:05:05,180
So if you wanted to use the named range as opposed to selecting the sounds, you can definitely do that.
73
00:05:05,250 --> 00:05:07,120
As well, Coma.
74
00:05:07,500 --> 00:05:10,140
Now we need to specify the column, we want to return.
75
00:05:10,350 --> 00:05:16,230
So we want to return the product, which is column number two, and we want to do an exact match of
76
00:05:16,230 --> 00:05:17,550
the order number.
77
00:05:18,540 --> 00:05:24,300
Close the bracket, enter and it's given me the product of grapes that's double clicked.
78
00:05:24,300 --> 00:05:25,350
Copy that down.
79
00:05:25,660 --> 00:05:26,910
And would you take a look at that?
80
00:05:26,910 --> 00:05:28,680
I have an and a error.
81
00:05:29,370 --> 00:05:31,050
Now we're going to deal with that in a moment.
82
00:05:31,080 --> 00:05:32,870
Let's just do the price as well, sir.
83
00:05:32,880 --> 00:05:34,110
Equals V look up.
84
00:05:35,880 --> 00:05:38,010
Look up, value is the order number.
85
00:05:39,330 --> 00:05:41,150
Table array is the fruit list.
86
00:05:41,160 --> 00:05:47,640
I'm going to press the three key and select my name range from here because that's a bit easier this
87
00:05:47,640 --> 00:05:47,940
time.
88
00:05:47,940 --> 00:05:53,190
The column we want to pull back is the price, which is column number three in the fruit this table
89
00:05:53,490 --> 00:05:55,980
and we're doing an exact match.
90
00:05:56,880 --> 00:05:58,680
Close the bracket, enter.
91
00:05:58,950 --> 00:06:03,510
And if we copy this down again, I'm getting an NDA just here.
92
00:06:03,750 --> 00:06:08,340
And for the most part, this is probably going to be because this order number doesn't exist in the
93
00:06:08,340 --> 00:06:08,850
table.
94
00:06:09,420 --> 00:06:13,740
So if we jump across and take a quick look because we don't have many of them, I can say, nope, I
95
00:06:13,740 --> 00:06:17,310
don't have order number one zero zero zero three.
96
00:06:17,490 --> 00:06:20,700
And what I could do here is I could click on this error.
97
00:06:20,820 --> 00:06:23,160
I could evaluate the formula.
98
00:06:23,850 --> 00:06:28,470
And if I click Evaluate, it's going to go through each step of the formula.
99
00:06:28,860 --> 00:06:35,250
And I can see that when it gets to the look up value part, that is where I'm getting the energy.
100
00:06:35,640 --> 00:06:39,780
So it really helps me determine which part this formula is incorrect.
101
00:06:39,990 --> 00:06:46,830
What I could also do here is trace presidents, and that's going to show me which cells I'm using in
102
00:06:46,830 --> 00:06:48,630
my V lookup formula.
103
00:06:48,930 --> 00:06:53,940
Now, in order to fix this, I'm going to add some error handling into my V lock up.
104
00:06:54,660 --> 00:06:58,410
So let's go over to the formula bar because this isn't an error.
105
00:06:58,410 --> 00:07:01,740
I can just wrap this in an if and a formula.
106
00:07:02,640 --> 00:07:07,890
Let's click at the end comma and I'm going to say not found.
107
00:07:08,910 --> 00:07:16,290
Close the bracket enter and then we can double click to copy that down and we can do exactly the same
108
00:07:16,290 --> 00:07:17,410
for the price.
109
00:07:17,430 --> 00:07:22,320
So, if any, again, we're just making this more meaningful.
110
00:07:24,510 --> 00:07:29,760
Close the bracket, enter and then we can double click to copy that down.
10681
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.