All language subtitles for 6. The OFFSET Function

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French Download
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:05,120 --> 00:00:11,360 In this case, we're going to explore how the offset function works, and offset is a function that 2 00:00:11,360 --> 00:00:13,670 you'll see quite often used on its own. 3 00:00:13,940 --> 00:00:19,970 But a lot of the time you'll see it combined with other functions to produce some really powerful results. 4 00:00:20,780 --> 00:00:24,860 So what exactly is the offset function and how does it work? 5 00:00:25,640 --> 00:00:29,240 Well, we're going to take a look at a basic example, first of all, and then I'm going to show you 6 00:00:29,240 --> 00:00:31,940 a more practical way of using Offset. 7 00:00:32,150 --> 00:00:38,990 Now the data that we're using in this first example is just some basic sales data for different regions 8 00:00:38,990 --> 00:00:40,820 across different months. 9 00:00:41,090 --> 00:00:47,540 And what the offset function will basically allow you to do is return a result from a cell that is a 10 00:00:47,540 --> 00:00:53,540 specified number of rows or columns away from your starting cell. 11 00:00:53,900 --> 00:00:57,380 Now, that is really hard to picture without seeing an example. 12 00:00:57,650 --> 00:01:02,480 So let's just click somewhere over here and type in equals offset. 13 00:01:03,930 --> 00:01:09,810 Now, notice here that we have five arguments, and the last two are optional arguments because they're 14 00:01:09,810 --> 00:01:11,190 in those square brackets. 15 00:01:12,180 --> 00:01:16,860 Now the first piece of information, this is the most important piece of information when you're using 16 00:01:16,860 --> 00:01:19,200 the offset function is the reference. 17 00:01:19,830 --> 00:01:27,180 You always need to have a starting point, a starting cell, and that cell is used as your reference 18 00:01:27,180 --> 00:01:27,600 point. 19 00:01:28,140 --> 00:01:32,070 Now, which cell you choose to use as a reference is entirely up to you. 20 00:01:32,460 --> 00:01:38,310 But for the purpose of this example, I'm going to use Cell a three comma. 21 00:01:39,270 --> 00:01:41,490 The next argument is rows. 22 00:01:42,360 --> 00:01:48,930 So what I can say here is I can get this function to move down whatever number of rows I specify. 23 00:01:49,740 --> 00:01:57,210 So if I want to, for example, let's say if I want to return the result for the North Region for March, 24 00:01:57,450 --> 00:02:01,950 I need to move down three rows comma. 25 00:02:03,320 --> 00:02:12,860 And I need to go across one column, comma, I can then choose the height and the width of my range. 26 00:02:13,250 --> 00:02:20,120 So for example, if I choose a height of one and a width of one, that's basically means one cell. 27 00:02:20,480 --> 00:02:27,830 If I was to choose a height of two and a width of two, that would be a selection of four cells. 28 00:02:28,220 --> 00:02:35,450 So if I close this bracket now and hence, I should find that the result I get returned is the march 29 00:02:35,450 --> 00:02:37,370 value for the North region. 30 00:02:37,910 --> 00:02:41,450 And if I take a look at that just there, that is exactly what I've got. 31 00:02:41,810 --> 00:02:48,110 So you specify your starting point, you specify how many rows you want to move down, how many columns 32 00:02:48,110 --> 00:02:53,450 you want to move across and then basically how many cells you want to select from that point. 33 00:02:54,050 --> 00:02:59,210 That can be one cell, or it can be multiple cells, a range of cells. 34 00:03:00,140 --> 00:03:04,490 So let's do it again and take a look at what happens if we select a range of cells. 35 00:03:05,120 --> 00:03:07,280 So equals offset. 36 00:03:07,790 --> 00:03:10,590 I'm going to use the same reference point a three. 37 00:03:11,360 --> 00:03:19,430 This time, let's say I want to return the July figures for the south region and I want to basically 38 00:03:19,430 --> 00:03:21,050 return July to December. 39 00:03:21,590 --> 00:03:24,350 So rows, how many rows do I need to go down? 40 00:03:24,860 --> 00:03:28,010 Well, one two three four five six. 41 00:03:28,010 --> 00:03:31,430 I need to go down seven rows to get to July. 42 00:03:31,790 --> 00:03:39,170 I want to return them from the south region, so I need to go across two columns now because I want 43 00:03:39,170 --> 00:03:42,570 to return all of the results from July to December. 44 00:03:42,590 --> 00:03:49,430 The height is going to be one two three four five six cells effectively. 45 00:03:50,750 --> 00:03:55,340 But I only want to return them from one column, so it's going to be one for the width. 46 00:03:56,450 --> 00:03:59,600 Close the bracket, Hansa and it's going to return. 47 00:03:59,600 --> 00:04:03,710 All of those results, though, should exactly match what we have just there. 48 00:04:04,800 --> 00:04:09,510 Let's do it one more time, so you get the hang of this equals offset. 49 00:04:10,200 --> 00:04:15,600 Let's choose a different reference point this time let's to sell a three comma. 50 00:04:16,290 --> 00:04:21,080 How many rows do I want to go down this time while I'm going to select a random region in the middle? 51 00:04:21,090 --> 00:04:25,500 So let's go down to the April value for the east region. 52 00:04:26,340 --> 00:04:35,430 So I need to go down one to three four rows now I need to go back one column. 53 00:04:35,730 --> 00:04:39,060 So for this, we can use minus values if we need to go back. 54 00:04:39,060 --> 00:04:44,700 So minus one, I can then specify my column height and my column width. 55 00:04:45,030 --> 00:04:48,420 Now I'm going to say I want, let's just do two. 56 00:04:48,690 --> 00:04:52,170 And to close the bracket, let's see what we get. 57 00:04:52,950 --> 00:04:55,840 So it's bringing back this range. 58 00:04:55,860 --> 00:04:59,430 Just here, we moved down four rows. 59 00:04:59,850 --> 00:05:01,550 We moved back one. 60 00:05:01,560 --> 00:05:08,250 And then we said that we wanted a range that was two cells in height and two cells in width. 61 00:05:08,610 --> 00:05:12,330 So that is basically how the offset function works. 62 00:05:12,660 --> 00:05:14,220 Now you might be thinking to yourself, OK. 63 00:05:14,250 --> 00:05:14,870 I get it. 64 00:05:14,880 --> 00:05:16,110 That's totally fine. 65 00:05:16,380 --> 00:05:18,810 But how is this function useful to me? 66 00:05:19,530 --> 00:05:22,290 Well, let's take a look at a practical example. 67 00:05:22,500 --> 00:05:29,370 Now, if we go across to this next spreadsheet, you can see here I have an offset formula and I've 68 00:05:29,370 --> 00:05:31,920 combined it with a sum function. 69 00:05:32,850 --> 00:05:33,690 And that's what I said. 70 00:05:33,690 --> 00:05:39,360 You quite often see Offset combined with other functions to create a really powerful formula. 71 00:05:40,320 --> 00:05:47,490 Now what it's done here is it's looking at my little table and it's summing together the last three 72 00:05:47,490 --> 00:05:48,960 months of sales figures. 73 00:05:49,230 --> 00:05:55,140 So basically, these figures, just they're being added together to produce this result. 74 00:05:55,530 --> 00:05:57,690 Now, why would we use Offset just here? 75 00:05:58,110 --> 00:06:04,320 Well, it might be that with this data every month, new sales figures get added to the end. 76 00:06:05,040 --> 00:06:13,380 And if I was to add another month on the bottom here, let's just drag this down and let's say 1500. 77 00:06:14,340 --> 00:06:18,510 Notice that the sales figure has now updated to $4000. 78 00:06:19,140 --> 00:06:21,240 So I've added a new value on the end. 79 00:06:21,300 --> 00:06:23,490 It's still looking at the last three months. 80 00:06:23,490 --> 00:06:26,730 If I select these cells, you can see down in the status bar. 81 00:06:26,730 --> 00:06:28,980 The sum is actually four thousand. 82 00:06:29,700 --> 00:06:37,290 So it's adjusted the positions once I've added a new value onto the bottom and I haven't had to change 83 00:06:37,290 --> 00:06:38,640 anything in the formula. 84 00:06:38,850 --> 00:06:45,900 Now it's done that because I'm using the offset function, so I'm going to undo just to get rid of those 85 00:06:45,900 --> 00:06:46,590 values. 86 00:06:46,590 --> 00:06:49,350 And let's go through how we constructed this. 87 00:06:49,800 --> 00:06:56,160 Now I'm combining offset with some because I want to basically add up the last three months now for 88 00:06:56,160 --> 00:06:56,910 this example. 89 00:06:56,940 --> 00:06:58,910 Let's do the last six months. 90 00:06:58,920 --> 00:07:00,420 That's what I want it to add up. 91 00:07:00,990 --> 00:07:07,500 So we need to start this calculation with a sum function and then go straight into our offset. 92 00:07:08,580 --> 00:07:10,530 So now we have our arguments. 93 00:07:11,160 --> 00:07:12,950 Let's choose a reference point. 94 00:07:12,960 --> 00:07:16,890 I'm going to choose Cell B three comma. 95 00:07:17,280 --> 00:07:21,180 We now need to specify how many rows we want to count down. 96 00:07:21,750 --> 00:07:27,690 Now, if I was just to put something in here like five, this formula isn't going to work because that 97 00:07:27,690 --> 00:07:29,280 number is hardcoded in. 98 00:07:29,280 --> 00:07:34,740 It's not going to adjust its position when I add new data onto the bottom. 99 00:07:35,490 --> 00:07:43,560 So here, in order to find the rows, we need to do a count a and we want to count all of the values 100 00:07:43,560 --> 00:07:47,190 in this range before to be fifteen. 101 00:07:48,710 --> 00:07:49,110 Comma. 102 00:07:49,700 --> 00:07:56,420 Now I don't want to move across any columns, so I'm going to put a zero in here and then the heights, 103 00:07:56,420 --> 00:07:59,780 well, I want the last six months of data. 104 00:08:00,350 --> 00:08:05,780 So we're going to go from the bottom because we want the last six months so effectively minus six needs 105 00:08:05,780 --> 00:08:06,890 to go in here. 106 00:08:07,220 --> 00:08:09,770 And then our last argument is with. 107 00:08:10,190 --> 00:08:12,200 Well, it's the width of one column. 108 00:08:12,200 --> 00:08:14,960 So we want to have a one on the end here. 109 00:08:15,920 --> 00:08:20,270 Let's close off our offset and close of as some and enter. 110 00:08:21,140 --> 00:08:24,170 So I'm getting a result of 6300. 111 00:08:24,230 --> 00:08:30,590 And if I check that simply by highlighting the last six months of values, so one two three four five 112 00:08:30,590 --> 00:08:31,250 six. 113 00:08:31,910 --> 00:08:33,290 Let's take a look in the status bar. 114 00:08:33,300 --> 00:08:34,430 That's the quickest way. 115 00:08:34,790 --> 00:08:41,210 The sum calculation there is 6300, which matches my result in Cell E four. 116 00:08:41,660 --> 00:08:45,770 Now let's see what happens if I add some more data onto the bottom of this table. 117 00:08:46,310 --> 00:08:48,320 So I'm just going to add another month. 118 00:08:48,350 --> 00:08:51,680 Let's add a value of 2000 in there. 119 00:08:52,010 --> 00:08:57,830 Now, notice that this formula hasn't automatically updated to include that new value, because now 120 00:08:57,830 --> 00:09:03,770 the last six months, the sum of those six months should equal 7500. 121 00:09:03,770 --> 00:09:06,770 A Mirasol is still showing the old total. 122 00:09:07,640 --> 00:09:12,750 Now I can see that I've got a green triangle in the corner, so what I could do is click here. 123 00:09:12,920 --> 00:09:14,060 Click the triangle. 124 00:09:14,600 --> 00:09:17,510 And I could update the formula to include the new cells. 125 00:09:17,520 --> 00:09:19,880 That is one way of fixing this problem. 126 00:09:20,120 --> 00:09:27,320 The other way that I could fix this would be to modify this formula so that my cell range extends past 127 00:09:27,500 --> 00:09:29,240 the last value that I have in here. 128 00:09:29,870 --> 00:09:35,900 So instead of B four to be 15, I might change this to something like B 23. 129 00:09:35,920 --> 00:09:40,490 So let's go up to the Formula Bar and change B 15 to be 23. 130 00:09:41,450 --> 00:09:47,870 Now, if I enter, I get the correct result because my new result is being included in the formula. 131 00:09:48,260 --> 00:09:51,230 Another way of doing this would be to use a table. 132 00:09:52,070 --> 00:09:59,570 So if I click in my data center, control a control t, yes, my table has headers, let's click on 133 00:09:59,570 --> 00:10:04,870 OK and you can obviously change the formatting of that table if you want to. 134 00:10:05,300 --> 00:10:12,050 What I can then do is add another month and the table auto expands to accommodate that. 135 00:10:12,830 --> 00:10:20,450 So when I add in the new total, you can see that now that total automatically updates, let's just 136 00:10:20,450 --> 00:10:23,780 double check that that is exactly the last six months. 137 00:10:24,080 --> 00:10:29,090 And if I look down in that state, spar that sum total, yes, ten thousand six hundred. 138 00:10:29,720 --> 00:10:35,690 So you have three different methods there to get offset to update automatically, you can click on that 139 00:10:35,720 --> 00:10:36,810 warning triangle. 140 00:10:37,100 --> 00:10:43,670 You can extend the formula past the end of your data, or you can put your data set into a table. 141 00:10:44,510 --> 00:10:49,090 So that is a practical use of offset with the sum function. 14129

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.