🔍 Day 7: Lookup Functions Mastery
VLOOKUP • HLOOKUP • MATCH
Ghaziabad, Mohan Nagar
Drafted by: HR Prateek Sharma
📋 VLOOKUP - Vertical Lookup
V
What is VLOOKUP?
VLOOKUP searches for data vertically (down columns) in a table and returns corresponding values.
VERTICAL
4 Required Parameters:
1 or TRUE = Approximate match
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Find employee name using Employee ID:
=VLOOKUP(A2, EmployeeTable, 2, 0)
$
Cell Locking (Absolute Reference)
Why? Prevents cell references from changing when copying formulas
=VLOOKUP($A$2, $B$2:$F$100, 2, 0)
• $A$2 = Locked row and column
• $B$2:$F$100 = Locked table range
⚠️ Common Issue:
Need to change column index number again and again when copying formula across different columns
✅ Solution: Use MATCH Function!
MATCH automatically finds the column index number, eliminating manual changes
🎯 MATCH Function - Smart Column Finder
M
What is MATCH?
MATCH finds the position of a value within a range, automatically determining the column index number.
3 Parameters:
=VLOOKUP($I$65, $TableArray$, MATCH(SelectedName, $HeaderRange$, 0), 0)
=VLOOKUP($A2, $B$2:$F$100, MATCH(H1, $B$1:$F$1, 0), 0)
Breakdown:
• $A2 = Lookup value (Emp_ID)
• $B$2:$F$100 = Data table (locked)
• MATCH(H1, $B$1:$F$1, 0) = Finds column automatically
• 0 = Exact match
📊 HLOOKUP - Horizontal Lookup
H
What is HLOOKUP?
HLOOKUP searches for data horizontally (across rows) in a table and returns corresponding values.
4 Required Parameters:
=HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
Find data from the 3rd row of a horizontal table:
=HLOOKUP(A1, $A$1:$Z$10, 3, 0)
⚖️ VLOOKUP vs HLOOKUP
VLOOKUP
Vertical search
Searches down columns
Uses Column Index
HLOOKUP
Horizontal search
Searches across rows
Uses Row Index
Vertical data → VLOOKUP | Horizontal data → HLOOKUP
Comments
Post a Comment