Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:05,520 --> 00:00:11,550
In the last lesson of this section, we're going to take a look at the indirect function now of the
2
00:00:11,560 --> 00:00:18,720
indirect function does is it indirectly references another cell to return a result.
3
00:00:19,590 --> 00:00:23,890
So let's take a look at a very basic example of indirect in action.
4
00:00:24,120 --> 00:00:30,750
So I'm going to I'm going to go somewhere down here in the spreadsheets that's select cell I-10, and
5
00:00:30,750 --> 00:00:33,510
I'm going to type in another cell reference.
6
00:00:33,660 --> 00:00:42,420
Let's go for a sake 10 in here now in Cell K 10, maybe I have a number like 300.
7
00:00:43,320 --> 00:00:47,130
So what I could do over here is I could use indirect.
8
00:00:49,330 --> 00:00:51,460
And notice that we have two arguments.
9
00:00:52,150 --> 00:00:58,420
The first argument is the reference text, so I could select this sound just here.
10
00:00:58,570 --> 00:01:00,880
Close the bracket and hit enter.
11
00:01:01,060 --> 00:01:07,570
And the results, I guess, is going to be 300 because I've indirectly referenced this cell over here.
12
00:01:07,780 --> 00:01:16,150
The indirect function is referencing directly cell IE10, but in cell, it said We have a cell reference
13
00:01:16,150 --> 00:01:23,440
to Cell K10 and Cell K10 contains 300, which is why we're getting the result of 300.
14
00:01:23,740 --> 00:01:27,070
So that is indirect in its most basic form.
15
00:01:27,280 --> 00:01:32,380
So again, you might be looking at that and thinking, OK, I understand that, but how is that going
16
00:01:32,380 --> 00:01:33,640
to be useful to me?
17
00:01:34,390 --> 00:01:37,300
Well, let's take a look at our first practical example.
18
00:01:37,450 --> 00:01:44,950
What I have here are a number of sales managers and we have the different regions north, south, east
19
00:01:44,950 --> 00:01:49,650
and west and the amount of sales each of those managers have generated.
20
00:01:49,690 --> 00:01:59,050
And basically, what I'm trying to do here is in Cell H4, I want to pull back the total sales for whatever
21
00:01:59,050 --> 00:02:00,990
region I have in Cell G4.
22
00:02:01,150 --> 00:02:05,020
Now you might be thinking to yourself, Well, can't you just do a sum calculation here?
23
00:02:05,050 --> 00:02:05,980
Well, yes, I could.
24
00:02:05,980 --> 00:02:07,240
I could say equal some.
25
00:02:07,750 --> 00:02:13,830
We're looking for the North figures, so I could select this range just to close the bracket and answer,
26
00:02:14,140 --> 00:02:17,350
and it's going to give me the total sales for the North region.
27
00:02:17,500 --> 00:02:22,330
Notice in the formula that I have the different regions sets up as named ranges.
28
00:02:22,570 --> 00:02:28,720
Now the drawback with this is if I was to change the region, so let's change that to south.
29
00:02:28,810 --> 00:02:35,890
My values don't update because I've got nothing in this formula which is referencing these region names
30
00:02:36,670 --> 00:02:40,270
so I can get around this by using indirect with some.
31
00:02:40,570 --> 00:02:45,340
So we're going to start out with some and we're going to go straight in to indirect.
32
00:02:46,360 --> 00:02:48,970
Now our first argument is the reference text.
33
00:02:49,330 --> 00:02:55,870
So the reference text I'm going to use to do this, some calculation is the region that we have stored
34
00:02:55,870 --> 00:02:57,460
in Cell G for.
35
00:02:58,330 --> 00:03:02,710
Let's close off an indirect function and close off as some.
36
00:03:03,640 --> 00:03:08,290
So if I hit enter now, I'm getting the total sales for the south region.
37
00:03:08,920 --> 00:03:14,530
And if I select this cell range and take a look down in the status bar, I should find that my some
38
00:03:14,530 --> 00:03:19,180
calculation matches what I have in Cell H4, which it does.
39
00:03:19,460 --> 00:03:26,530
Now the advantage of doing it this way because we are indirectly referencing this range of cells via
40
00:03:26,740 --> 00:03:28,360
this cell just here.
41
00:03:28,930 --> 00:03:34,810
If I change the regions, if I change that to North, the figures are all going to update.
42
00:03:35,140 --> 00:03:39,520
So that is one practical example of how you can use the indirect function.
43
00:03:39,670 --> 00:03:45,640
Let's look at something now a little bit more complex now on this spreadsheet, I have a list of different
44
00:03:45,640 --> 00:03:53,020
tools or the countries that these tools go to, and I have how much those tools of generated in sales
45
00:03:53,020 --> 00:03:56,020
from January to July are right at the bottom.
46
00:03:56,020 --> 00:04:00,430
I have a totals row showing me the totals for each of those months.
47
00:04:00,610 --> 00:04:06,790
Now what I'm interested in when I'm looking at this worksheet are basically the total sales for the
48
00:04:06,790 --> 00:04:09,670
month just gone so effectively the current sales.
49
00:04:10,420 --> 00:04:16,660
So the current sales are always going to be this value here is going to be the total for the previous
50
00:04:16,660 --> 00:04:17,080
month.
51
00:04:17,290 --> 00:04:20,950
Now, bear in mind, this data is going to change each month.
52
00:04:20,950 --> 00:04:26,800
So next month we're going to have another column in here which is going to have all of the August figures.
53
00:04:27,490 --> 00:04:34,900
So we need to build our formula so that as we add columns of data in the current sales is always updating,
54
00:04:34,900 --> 00:04:41,290
so always moves across one, across one, across one to grab that total sales figure.
55
00:04:41,410 --> 00:04:44,290
And we can use indirect to help us do this.
56
00:04:44,560 --> 00:04:47,140
So let's click in Cell K.
57
00:04:48,340 --> 00:04:51,280
We're going to say pain equals indirect.
58
00:04:51,460 --> 00:04:54,440
Now, this time we're going to use both of these arguments.
59
00:04:54,490 --> 00:04:57,280
Now, the first argument here is reference text.
60
00:04:57,460 --> 00:05:01,540
Now, one thing you need to understand is when you're working in Excel, there are two different ways
61
00:05:01,540 --> 00:05:02,800
that you can reference cells.
62
00:05:03,400 --> 00:05:10,630
Now, the most common way is to use cell references, so A1 B to C three, so on and so forth.
63
00:05:10,810 --> 00:05:16,930
The other way that you can reference cells is to use what we call our one c one referencing.
64
00:05:17,110 --> 00:05:23,710
And the only difference with this is that our one c one lets you specify the row and the column.
65
00:05:23,920 --> 00:05:28,480
So if we just come out of here for a moment, so you understand what I mean, something that was written
66
00:05:28,480 --> 00:05:37,660
out like R 10, C two, that would basically mean row number 10 column number two.
67
00:05:38,140 --> 00:05:40,330
That is our one c one referencing.
68
00:05:40,510 --> 00:05:44,590
Now for this formula that we're constructing, we need to use that style of referencing.
69
00:05:45,160 --> 00:05:47,440
So let's type in indirect.
70
00:05:47,800 --> 00:05:48,640
There it is.
71
00:05:49,610 --> 00:05:55,310
So the reference that we're going to be using this time is our one C1, one style referencing.
72
00:05:55,830 --> 00:05:57,440
And what do we actually want to reference?
73
00:05:57,470 --> 00:06:02,720
Well, we want to reference the total row that contains the value that we're interested in.
74
00:06:02,870 --> 00:06:05,830
So the total row is row 15.
75
00:06:05,870 --> 00:06:12,350
But the column that we're choosing is going to change depending on how many columns of figures we have
76
00:06:12,350 --> 00:06:13,160
in this table.
77
00:06:13,190 --> 00:06:15,620
And remember, that's going to change each month.
78
00:06:16,010 --> 00:06:20,870
So we need to do something a bit different now when we're using this, our one C1 style, we need to
79
00:06:20,870 --> 00:06:22,280
put this in quote marks.
80
00:06:23,000 --> 00:06:25,250
So the first part of this is fairly straightforward.
81
00:06:25,250 --> 00:06:28,100
We want to reference row number 15.
82
00:06:28,370 --> 00:06:34,910
But when it comes to the column that we want to reference, I don't know the number of the column because
83
00:06:34,910 --> 00:06:38,870
it's going to change each month and we need to allow for that.
84
00:06:39,170 --> 00:06:45,320
So I'm going to add some more quote marks and we're going to use the ampersand to concatenate and then
85
00:06:45,320 --> 00:06:47,450
we're going to go straight into account.
86
00:06:47,450 --> 00:06:54,650
A. We're going to get excel to count the total number of columns in order to find where that last column
87
00:06:54,650 --> 00:06:57,710
is and we're going to count in row.
88
00:06:57,740 --> 00:06:58,430
15.
89
00:06:59,210 --> 00:07:05,540
Now the reason why I'm selecting the whole Rohingya is because this is going to accommodate any new
90
00:07:05,540 --> 00:07:06,740
rows that we add.
91
00:07:07,910 --> 00:07:09,020
Let's close the bracket.
92
00:07:09,290 --> 00:07:15,500
And then the last argument on the end here for this indirect function is the start of referencing that
93
00:07:15,500 --> 00:07:22,220
we're using now we're using our one C1 style in this case, so we need a false argument on the end.
94
00:07:22,430 --> 00:07:25,010
And let's close off our indirect.
95
00:07:25,880 --> 00:07:29,690
Now this is a reasonably complex formula that I'm showing you here.
96
00:07:29,720 --> 00:07:34,970
This might be more suited to the advanced Excel course, but I thought I'd throw this in here just so
97
00:07:34,970 --> 00:07:40,760
you can kind of get an idea as to how you can combine these functions together to get the result you
98
00:07:40,760 --> 00:07:41,120
need.
99
00:07:41,870 --> 00:07:43,970
So let's hit, enter and see what we get.
100
00:07:44,630 --> 00:07:51,410
What we should get is the total for the last month, which is July, and I can see that, yes, we do.
101
00:07:52,100 --> 00:07:54,440
Now I'm just going to apply a little bit of formatting.
102
00:07:54,440 --> 00:07:55,670
So this looks the same.
103
00:07:55,940 --> 00:08:01,070
So the way that we've constructed this formula, if I was to add another column in here, so I'm just
104
00:08:01,070 --> 00:08:05,100
going to copy this across and it's changed this.
105
00:08:05,100 --> 00:08:09,950
So we've got August there and let's change some values so that we have a different totals, let's say
106
00:08:09,950 --> 00:08:17,420
5000 or go ten thousand in here, let's drag the total across.
107
00:08:18,020 --> 00:08:20,330
And would you take a look at that now?
108
00:08:20,360 --> 00:08:24,710
This is updated and it's showing me the new month's total.
109
00:08:25,040 --> 00:08:31,430
So we've introduced a lot of new concepts in that we're just getting a head around how indirect works.
110
00:08:31,580 --> 00:08:38,240
We've also introduced the new all one C1 style of referencing, and we've introduced a little bit of
111
00:08:38,240 --> 00:08:46,160
concatenation and how you can use count to find the last value in the last column and future proof this
112
00:08:46,160 --> 00:08:51,350
formula a little bit for when you add new columns onto the end, this one is definitely one that you
113
00:08:51,350 --> 00:08:55,970
should have a little practice and play around with so that you really understand exactly what you're
114
00:08:55,970 --> 00:08:58,730
doing when you're using this style of formula.
115
00:08:58,910 --> 00:09:05,510
But hopefully that gives you a better idea as to how indirect works and a couple of practical examples
116
00:09:05,510 --> 00:09:06,770
of how you can use it.
12341
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.