Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:06,770 --> 00:00:09,440
It's time now to do exercise for.
2
00:00:10,160 --> 00:00:16,790
And in this exercise, I just want you to practice some of those super for date and time formulas.
3
00:00:17,720 --> 00:00:25,550
So we have a date in Column A. And using this date, I'd like you to complete the rest of these fields.
4
00:00:26,150 --> 00:00:35,270
So I want you to extract from this date, the month, the day, the year, the weekday number, the
5
00:00:35,270 --> 00:00:38,120
weekday name, the month name.
6
00:00:38,300 --> 00:00:46,370
And then finally, I'd like you to add a formula into column age, which checks if the day is a Friday
7
00:00:47,060 --> 00:00:50,660
and if it is a Friday, we want the output to be yes.
8
00:00:51,050 --> 00:00:54,080
If it isn't a Friday, we want the output to be no.
9
00:00:54,470 --> 00:01:00,950
The other thing to remember with this is that if the result that you want returned is text, for example,
10
00:01:00,950 --> 00:01:06,050
the weekday name, remember you need to use a slightly different formula.
11
00:01:06,260 --> 00:01:09,200
Now's the time to pause the video and give that a go.
12
00:01:09,800 --> 00:01:12,920
If you'd like to see my answer, then please keep watching.
13
00:01:13,250 --> 00:01:17,960
So the first thing we're going to do here is we're going to extract the month from the date that we
14
00:01:17,960 --> 00:01:19,220
have in Column eight.
15
00:01:19,910 --> 00:01:23,150
So for this, we use the very simple month function.
16
00:01:23,510 --> 00:01:29,330
It only has one argument, and that is the cell that contains the date.
17
00:01:29,420 --> 00:01:37,190
In this case, a full close, the bracket hit enter, and it's extracted the number two from this date.
18
00:01:38,240 --> 00:01:40,490
This time we want to extract the day.
19
00:01:41,270 --> 00:01:44,390
So for this, we can use the day function.
20
00:01:44,660 --> 00:01:50,030
Again, one simple argument close the bracket, enter.
21
00:01:50,840 --> 00:01:54,380
And as you can imagine, we can also extract the year.
22
00:01:55,100 --> 00:01:56,900
We can select a four.
23
00:01:57,740 --> 00:02:00,140
Close the bracket and enter now.
24
00:02:00,140 --> 00:02:02,990
For the next one, we want to extract the weekday number.
25
00:02:03,530 --> 00:02:06,890
So we're going to use the function called weekday.
26
00:02:08,210 --> 00:02:11,000
Again, we need to select the serial number.
27
00:02:11,000 --> 00:02:18,380
So the cell that contains the date and then we need to tell Excel how we number add days of the week.
28
00:02:18,980 --> 00:02:24,110
So if you number one to seven Sunday through Saturday, you're going to select the first option.
29
00:02:24,680 --> 00:02:31,640
Now I generally tend to number my weeks as Monday is one, Sunday is seven, so I'm going to go for
30
00:02:31,640 --> 00:02:34,940
option to close the bracket.
31
00:02:35,330 --> 00:02:35,970
Enter.
32
00:02:35,990 --> 00:02:37,880
And now I get my weekday number.
33
00:02:38,090 --> 00:02:41,870
Now for the next two, we want to return the weekday name.
34
00:02:41,880 --> 00:02:49,190
So if it's Monday, Tuesday, Wednesday and also the month name as well January, February, March now
35
00:02:49,190 --> 00:02:54,980
because we want text to be returned, we need to use the text function.
36
00:02:56,090 --> 00:03:01,310
Our first argument is the value, so that's going to be the cell that contains the date.
37
00:03:01,850 --> 00:03:04,430
And then we need to specify the formula.
38
00:03:04,670 --> 00:03:08,090
So this one is going to be the weekday name.
39
00:03:09,050 --> 00:03:12,320
Now I want this to show in the short weekday format.
40
00:03:12,950 --> 00:03:18,080
So I'm going to open up quote marks and type in three days.
41
00:03:18,950 --> 00:03:20,240
Close those quote marks.
42
00:03:20,690 --> 00:03:21,650
Close the bracket.
43
00:03:22,070 --> 00:03:24,920
Hit Enter and now I get my weekday name.
44
00:03:26,000 --> 00:03:31,730
I need to do something very similar if I want to extract the month name as well.
45
00:03:32,240 --> 00:03:34,430
So we're going to start with the text function.
46
00:03:35,210 --> 00:03:41,450
The value is our date, and then we specify the format that we want our month to be in.
47
00:03:42,080 --> 00:03:45,080
So once again, I'm going to do the short date format.
48
00:03:45,080 --> 00:03:51,020
So MRM quote marks close the bracket, hit enter.
49
00:03:51,260 --> 00:03:57,750
And then the final thing I wanted you to do in Column H is work out if this day is a Friday.
50
00:03:58,400 --> 00:03:59,690
And how can we do that?
51
00:03:59,930 --> 00:04:05,610
Well, we can use the weekday number because I have numbered my weekdays one to seven.
52
00:04:05,630 --> 00:04:08,180
I know that Friday equals five.
53
00:04:08,900 --> 00:04:12,380
So all I need to do in here is add in an if formula.
54
00:04:13,070 --> 00:04:24,380
So if the week day number is equal to five, if that's true, then yes, it is a Friday.
55
00:04:24,680 --> 00:04:26,660
So our result is going to be yes.
56
00:04:27,530 --> 00:04:30,740
If that's false, then no, it's not Friday.
57
00:04:32,810 --> 00:04:37,910
Close the bracket, hit enter and you can see that for that first one is a Friday.
58
00:04:37,910 --> 00:04:39,740
And so we have yes in that.
59
00:04:40,010 --> 00:04:42,140
So now I have all of these formulas.
60
00:04:42,140 --> 00:04:49,040
If I want to copy them down for the rest of this table, I can simply select them all and double click
61
00:04:49,130 --> 00:04:50,720
to copy those down.
5907
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.