TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.2K subscribers
Post #2146 2.29K
๐Ÿš€ Excel Formulas Fundamentals โ€” Part 9

๐Ÿ” Lookup & Reference Functions (VLOOKUP, HLOOKUP, INDEX, MATCH, XLOOKUP)

Lookup functions are among the most frequently asked topics in Excel interviews. They help you search for data in one table and return related information from another.

๐Ÿ“Œ Common use cases:

Employee databases, Product catalogs, Customer records, Sales reports, Inventory management

๐Ÿง  1. What is a Lookup Function?

A lookup function searches for a value and returns a related value from another row or column.

Example:

You have Employee ID, Name, Department data.

Rows: E101 Rahul Sales, E102 Priya HR, E103 Amit IT

Search for E102 and return HR.

๐Ÿ“– 2. VLOOKUP()

VLOOKUP stands for Vertical Lookup.

It searches the first column of a table and returns a value from another column in the same row.

Syntax:

=VLOOKUP(lookup_value,table_array,col_index_num,FALSE)

Example:

Data: E101 Rahul 50000, E102 Priya 60000, E103 Amit 70000

Formula: =VLOOKUP("E102",A2:C4,3,FALSE)

Result: 60000

Arguments explained:

lookup_value: Value to search

table_array: Data table

col_index_num: Column number to return

FALSE: Exact match

โš ๏ธ 3. Limitations of VLOOKUP

โŒ Can only search left to right

โŒ Column numbers must be counted manually

โŒ Breaks if columns are inserted or deleted

โŒ Slower on large datasets

๐Ÿ“Œ These limitations are why many professionals now prefer INDEX + MATCH or XLOOKUP.

๐Ÿ“˜ 4. HLOOKUP()

HLOOKUP stands for Horizontal Lookup.

It searches across the first row and returns a value from a specified row.

Syntax:

=HLOOKUP(lookup_value,table_array,row_index_num,FALSE)

Example:

Data across columns: Jan 10000, Feb 12000, Mar 15000

Formula: =HLOOKUP("Feb",A1:D2,2,FALSE)

Result: 12000

๐Ÿ“Œ Less commonly used because most business data is arranged vertically.

๐ŸŽฏ 5. MATCH()

MATCH returns the position of a value in a range.

Syntax:

=MATCH(lookup_value,lookup_array,0)

Example:

List: Rahul, Priya, Amit

Formula: =MATCH("Priya",A2:A4,0)

Result: 2

๐Ÿ“Œ It returns the position, not the actual value.

๐Ÿ“Œ 6. INDEX()

INDEX returns the value at a specified row and optionally column.

Syntax:

=INDEX(array,row_num)

Example:

Salary list: 50000, 60000, 70000

Formula: =INDEX(A2:A4,2)

Result: 60000

๐Ÿš€ 7. INDEX + MATCH (Powerful Combination)

This combination is more flexible than VLOOKUP.

Formula:

=INDEX(C2:C4,MATCH("E102",A2:A4,0))

Result: 60000

How It Works:

1. MATCH finds the row number of E102.

2. INDEX returns the salary from that row.

Advantages:

โœ… Can look left or right

โœ… Doesn't break when columns are inserted

โœ… Faster on large datasets

โœ… Easier to maintain

โญ 8. XLOOKUP()

XLOOKUP is the modern replacement for VLOOKUP.

Syntax:

=XLOOKUP(lookup_value,lookup_array,return_array,"Not Found")

Example:

=XLOOKUP("E102",A2:A4,C2:C4,"Not Found")

Result: 60000

XLOOKUP vs VLOOKUP:

Left Lookup: VLOOKUP No, XLOOKUP Yes

Right Lookup: Both Yes

Default Error Message: VLOOKUP No, XLOOKUP Yes

Column Number Required: VLOOKUP Yes, XLOOKUP No

Easier to Read: VLOOKUP No, XLOOKUP Yes
  • โค 6
More from @excel_analyst
  1. Oct 12, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 7 This part focuses on Paste Special, Go To Special & Advanced Pโ€ฆ
  2. Oct 12, 2026๐Ÿš€ ๐—ช๐—ต๐—ถ๐—ฐ๐—ต ๐—ง๐—ฒ๐—ฐ๐—ต ๐—ฆ๐—ธ๐—ถ๐—น๐—น ๐—ช๐—ถ๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ? Want to builโ€ฆ
  3. Oct 10, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 6 This part focuses on Worksheet & Sheet Management shortcuts โ€”โ€ฆ
  4. Oct 9, 2026Hey guys, Today, Iโ€™m covering some Excel interview questions that often pop up in data anaโ€ฆ
  5. Oct 9, 2026๐Ÿ‡ฎ๐Ÿ‡ณ ๐—š๐—ข๐—ฉ๐—˜๐—ฅ๐—ก๐— ๐—˜๐—ก๐—ง ๐—ข๐—™ ๐—œ๐—ก๐——๐—œ๐—” โ€” ๐—”๐—œ๐—–๐—ง๐—˜ ๐—œ๐—ก๐—ง๐—˜๐—ฅ๐—ก๐—ฆ๐—›๐—œ๐—ฃ๐—ฆ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ ๐Ÿš€โ€ฆ
  6. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’