Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:04,800 --> 00:00:10,740
Both of the Vila Cut formulas that we've looked at so far in this section have been using data that
2
00:00:10,740 --> 00:00:15,510
runs vertically down the page, hence why it's called the look up.
3
00:00:15,720 --> 00:00:22,080
So in this lesson, I want to show you an example of h lookup where our data is running horizontally
4
00:00:22,080 --> 00:00:23,520
across the page instead.
5
00:00:23,670 --> 00:00:24,850
Now what do I mean by that?
6
00:00:24,870 --> 00:00:28,980
Well, on this worksheet, I have an example of data that runs vertically down the page.
7
00:00:29,550 --> 00:00:34,470
We have our column headings at the top and then our rows of data underneath.
8
00:00:34,620 --> 00:00:38,100
And this is by far the most common way to display data.
9
00:00:38,190 --> 00:00:44,640
A less common way is to have your column headings in the rows as opposed to in the columns, so that
10
00:00:44,640 --> 00:00:47,430
your data runs horizontally across the page.
11
00:00:47,640 --> 00:00:52,650
And whilst this is definitely not as common, you need to be able to have the tools to be able to deal
12
00:00:52,650 --> 00:00:55,560
with that scenario and still perform your lookups.
13
00:00:56,310 --> 00:01:01,170
So what we're going to do, first of all, is we're going to grab this data and we're going to flip
14
00:01:01,170 --> 00:01:02,160
it the other way round.
15
00:01:02,640 --> 00:01:08,700
And this is also a good opportunity for me to show you a little command you can use if you need to switch
16
00:01:08,700 --> 00:01:10,980
data around for any specific reason.
17
00:01:11,070 --> 00:01:19,140
So I'm going to click my data table control I to select everything control C to copy, and then I'm
18
00:01:19,140 --> 00:01:25,860
going to go across to my H Lookup worksheet and I'm going to paste this data onto the worksheet, but
19
00:01:25,860 --> 00:01:29,040
we're going to paste it running horizontally as opposed to vertically.
20
00:01:29,160 --> 00:01:37,140
So what we can do here is on the Home tab up to paste, click the lower half and go to Paste Special.
21
00:01:37,890 --> 00:01:43,710
And if we choose the transpose command that will basically flip your data around the other way when
22
00:01:43,710 --> 00:01:46,680
I click on OK, you can see what that's done.
23
00:01:46,680 --> 00:01:53,040
I now have my column headings in the rows and my data runs horizontally across the page.
24
00:01:53,670 --> 00:01:59,610
And if I zoom out a little bit because I do want to do a little bit of resizing, so we don't have those
25
00:01:59,820 --> 00:02:01,650
hash symbols in some of the cells.
26
00:02:02,250 --> 00:02:07,170
It's double click to resize all of those and then zoom back out again.
27
00:02:08,040 --> 00:02:08,640
Perfect.
28
00:02:09,270 --> 00:02:13,670
Now, as I said, this is by far not my favorite way of displaying data.
29
00:02:13,690 --> 00:02:19,740
It really does look quite messy, but you will come across datasets throughout your Excel career, which
30
00:02:19,740 --> 00:02:21,360
will be structured in this way.
31
00:02:21,450 --> 00:02:25,770
So if we have our data this way around, how can we do a look up?
32
00:02:25,830 --> 00:02:32,400
Well, the simple answer is pretty much in exactly the same way, just using the H lookup function as
33
00:02:32,400 --> 00:02:33,840
opposed to V look up.
34
00:02:34,020 --> 00:02:38,070
So what I want to do up here is I want to be able to type in a movie name.
35
00:02:38,070 --> 00:02:45,510
So let's just start with La La Land and I want it to return the year, what it's rated and the genre.
36
00:02:46,350 --> 00:02:52,230
So the first thing I'm going to do is I'm going to create a named range for my dataset set down here.
37
00:02:52,740 --> 00:02:56,730
Control A to select all up to that name box.
38
00:02:56,760 --> 00:03:00,840
I'm going to say movie list and enter.
39
00:03:01,980 --> 00:03:06,750
So now if I want to return the year, I'm going to use each look up.
40
00:03:07,680 --> 00:03:09,900
We have exactly the same arguments.
41
00:03:09,900 --> 00:03:14,190
There is one minor difference in here which I'll speak about more when we get to.
42
00:03:14,190 --> 00:03:16,890
Our first argument is the look up value.
43
00:03:17,520 --> 00:03:20,760
Well, we want to look up the film, so be five.
44
00:03:21,720 --> 00:03:24,060
Table Array Where are we looking it up?
45
00:03:24,240 --> 00:03:26,190
Well, we've created a named range.
46
00:03:26,190 --> 00:03:30,150
I can press at three and select my movie list.
47
00:03:31,440 --> 00:03:36,870
This time it's asking for a row index number as opposed to a column index number.
48
00:03:37,440 --> 00:03:42,720
So instead of counting across columns from left to right, we simply need to count down rows until we
49
00:03:42,720 --> 00:03:44,400
get to the one that we want to return.
50
00:03:45,300 --> 00:03:47,320
So we want to return the year.
51
00:03:47,340 --> 00:03:51,030
In this example, and that is row number two.
52
00:03:52,310 --> 00:03:56,150
And then we get to use an approximate or exact match.
53
00:03:56,870 --> 00:04:02,000
Well, I want to exactly match the movie name in the table, so we're going to have a false argument
54
00:04:02,000 --> 00:04:02,780
on the end here.
55
00:04:03,500 --> 00:04:05,480
Close the bracket and hit enter.
56
00:04:05,630 --> 00:04:11,700
And it's telling me that La La Land was released in 2016, and I can say that yes, it was.
57
00:04:11,990 --> 00:04:12,830
Let's do it again.
58
00:04:12,920 --> 00:04:14,690
So equals h.
59
00:04:14,690 --> 00:04:16,730
Look up, look up.
60
00:04:16,730 --> 00:04:23,330
Value is the movie f three to select a table array.
61
00:04:24,590 --> 00:04:32,420
Row number this time is row number three because we want to return what it's rated and we're doing an
62
00:04:32,420 --> 00:04:33,560
exact match.
63
00:04:33,590 --> 00:04:37,160
So I'm going to put a zero on the end to close the bracket.
64
00:04:37,700 --> 00:04:38,260
Enter.
65
00:04:38,540 --> 00:04:39,530
And there we go.
66
00:04:39,800 --> 00:04:41,030
Let's complete this set.
67
00:04:41,030 --> 00:04:46,490
This time I'm going to use the functions dialog box and we're going to search for each look up.
68
00:04:46,700 --> 00:04:47,460
There it is.
69
00:04:47,480 --> 00:04:52,070
Double click to open look up value movie name.
70
00:04:52,760 --> 00:04:55,070
Table Array Let's press three.
71
00:04:55,250 --> 00:04:58,870
Select our movie list row index number.
72
00:04:58,880 --> 00:05:00,890
Or this time we're looking for the genre.
73
00:05:01,040 --> 00:05:08,540
So that is row number one two three four five row number six and our range look up.
74
00:05:08,990 --> 00:05:11,510
We're doing a exact match, so it's a false.
75
00:05:11,870 --> 00:05:12,410
Let's click on.
76
00:05:12,410 --> 00:05:14,600
OK, and there we go.
77
00:05:15,380 --> 00:05:21,680
And if I was to change this film names, let's type in Jackie, I should find that all of these results
78
00:05:21,680 --> 00:05:22,370
updates.
79
00:05:22,520 --> 00:05:23,680
Let's check our table.
80
00:05:23,690 --> 00:05:24,830
There is Jackie.
81
00:05:25,220 --> 00:05:26,580
Everything is looking good.
82
00:05:27,350 --> 00:05:31,100
So that's really the only difference between Velika and H.
83
00:05:31,100 --> 00:05:31,490
Look up.
84
00:05:31,490 --> 00:05:37,430
It's all about how your data is structured and whether you have those column headings in the rows or
85
00:05:37,430 --> 00:05:38,120
the columns.
8009
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.