Professional Documents
Culture Documents
Simplified
VLOOKUP, HLOOKUP, INDEX, MATCH
2
VLookup Function (Basic to Advanced) VLOOKUP with TRUE Arguments in Excel
https://youtu.be/zBzJ9AHeoqI https://youtu.be/MAOwdcdQbv0
3
01 | VLOOKUP – Basics
Quick Walkthrough
What is VLOOKUP?
www.yodalearning.com 5
Step 1 – Whose details are you looking for?
www.yodalearning.com 6
Step 2 – Which table will you find the details in?
www.yodalearning.com 7
Step 3 – Which column of the table will you find the
details in?
3
SN ID Name Score col_index_num
ID Score
01 1222 Karl 76 2199 ?
02 2134 Jenny 56
lookup_value
03 2111 Sam 42
04 2199 John 71
05 1221 Carol 92
06 1009 Ray 62
table_array with ID as 1st column
www.yodalearning.com 8
Step 4 – False or True?
3
SN ID Name Score col_index_num
ID Score
01 1222 Karl 76 2199 71
02 2134 Jenny 56
lookup_value
03 2111 Sam 42
04 2199 John 71
• FALSE (0) is for EXACT match
05 1221 Carol 92
• TRUE (1) is for SLABS cases…
06 1009 Ray 62
to be discussed later
table_array with ID as 1st column
www.yodalearning.com 9
VLOOKUP Summarized
www.yodalearning.com 10
HLOOKUP() vs. VLOOKUP()
www.yodalearning.com 11
02 | Why use TRUE inside VLOOKUP?
VLOOKUP with TRUE when 3 conditions met
www.yodalearning.com 13
Example: Let’s say you scored 77.
% Grades
93.00 - 100 A
91.00 - 92.99 A-
83.33 - 90.99 B+
79.00 - 83.32 B
76.67 - 78.99 B-
73.33 - 76.66 C+ What grade will you receive?
70.00 - 73.32 C
66.67 - 69.99 C-
63.33 - 66.66 D+
60.00 - 63.32 D
56.67 - 59.99 D-
0.00 - 56.66 F
www.yodalearning.com 14
Which formula will you prefer to write - 1 or 2?
% Grades
93.00 - 100 A
91.00 - 92.99 A-
83.33 - 90.99 B+ 1
79.00 - 83.32 B
76.67 - 78.99 B-
73.33 - 76.66 C+
70.00 - 73.32 C
66.67 - 69.99 C-
63.33 - 66.66 D+
OR
60.00 - 63.32 D
56.67 - 59.99 D- 2
0.00 - 56.66 F
www.yodalearning.com 15
Convert table format (left ⇾ right)
www.yodalearning.com 16
Let’s take a simpler example to
understand…
Case Study
Situation: The table to assign the grade (A+ to E) based on the scores (0 to 5) have been
provided.
Complexity: To calculate the correct grade, it will take a complex Nested IF statement.
© YL Academy
© YL Academy
… cont’d
www.yodalearning.com 18
Solution: Use VLOOKUP with TRUE
1. Create a new column with ratings range (number) arranged in an ascending order and
where every value is read top to down with the meaning of >=
© YL Academy
© YL Academy
… cont’d
www.yodalearning.com 19
2. Use VLOOKUP with TRUE
© YL Academy
2 TRUE means 1
© YL Academy
www.yodalearning.com 20
Other real-life use cases
[Simple score grading]
www.yodalearning.com 22
[Debtors’ ageing]
www.yodalearning.com 23
[Dates]
www.yodalearning.com 24
03 | Why 2-D Lookup?
VLOOKUP() with MATCH()
When you need to pull a value from a
cross-tab or pivoted table using two inputs
www.yodalearning.com 26
Option 1: Complex Nested IFs
© Excel Superstar
www.yodalearning.com 27
Option 2: VLOOKUP + MATCH
www.yodalearning.com 28
The chemistry between VLOOKUP & MATCH…
www.yodalearning.com 29
Bonus: HLOOKUP (senior) with MATCH (junior)
www.yodalearning.com 30
How VLOOKUP & MATCH look like when they are together?
© Excel Superstar
0 (zero) for
exact match.
www.yodalearning.com 31
04 | Why reverse Lookup?
INDEX() with MATCH()
For left-side lookup, you will need INDEX()
VLOOKUP’s parameter
col_index_num cannot be -1
www.yodalearning.com 33
Formula for INDEX() & MATCH() - simplified
www.yodalearning.com 34
05 | Bonus: Our videos on YouTube
VLookup Function (Basic to Advanced) VLOOKUP with TRUE Arguments in Excel
https://youtu.be/zBzJ9AHeoqI https://youtu.be/MAOwdcdQbv0
36