TGViewer
MS Excel for Data Analysis MS Excel for Data Analysis @excel_analyst ยท 73.1K subscribers
Post #2247 2.95K
๐Ÿ“Š Excel Basics #23 โ€“ MATCH() Function

The MATCH() function finds the position of a value within a range. It is especially powerful when combined with INDEX() to create flexible lookup formulas.

๐Ÿ“Œ What is the MATCH() Function?

MATCH() searches for a value and returns its relative position in a range.

Syntax:

=MATCH(lookup_value, lookup_array, [match_type])

The most commonly used option is:

0 โ†’ Exact match

๐Ÿ“Œ Example 1 โ€“ Find the Position

Consider:

A

Rahul

Priya

Amit

Neha

Formula:

=MATCH("Amit",A2:A5,0)

Result: 3

Why?

Within the range A2:A5:

1๏ธโƒฃ Rahul

2๏ธโƒฃ Priya

3๏ธโƒฃ Amit

4๏ธโƒฃ Neha

So Amit is in position 3.

๐Ÿ“Œ Example 2 โ€“ Using a Cell Reference

If cell E2 contains "Priya":

=MATCH(E2,A2:A5,0)

Result: 2

This makes the lookup dynamic because changing E2 changes the result.

๐Ÿ“Œ MATCH() Match Types

The third argument controls how Excel searches.

0 โ†’ Exact match

=MATCH(E2,A2:A10,0)

Use this for most business/data analysis scenarios.

1 โ†’ Approximate match, assuming the lookup array is sorted ascending.

-1 โ†’ Approximate match, assuming the lookup array is sorted descending.

โš ๏ธ For beginners, use 0 unless you specifically need approximate matching.

๐Ÿ“Œ INDEX() + MATCH()

This is where MATCH() becomes extremely useful.

Example:

Employee | Department | Salary

Rahul | IT | 60000

Priya | HR | 55000

Amit | Finance | 70000

Neha | Marketing | 65000

To find Amit's salary:

=INDEX(C2:C5,MATCH("Amit",A2:A5,0))

How it works:

๐Ÿ‘‰ MATCH() finds Amit's position โ†’ 3

๐Ÿ‘‰ INDEX() returns the 3rd value from C2:C5 โ†’ 70000

Result: 70000

๐Ÿ“Œ MATCH() vs XLOOKUP()

MATCH():

โ€ข Returns the position.

โ€ข Very useful with INDEX().

โ€ข Useful when building dynamic formulas.

XLOOKUP():

โ€ข Directly returns the matching value.

โ€ข Easier for many modern lookup tasks.

โ€ข Available in newer Excel versions.

๐Ÿ“Œ Real-World Uses

โ€ข Find the position of an employee.

โ€ข Locate a product in a list.

โ€ข Find the position of a month or column.

โ€ข Build dynamic lookup formulas.

โ€ข Combine with INDEX() for advanced data analysis.

๐Ÿ“Œ Common Mistakes

โŒ Forgetting the 0 for an exact match.

โŒ Using approximate matching on unsorted data.

โŒ Searching in the wrong range.

โœ… Best Practices

โ€ข Use 0 for exact matching in most cases.

โ€ข Combine MATCH() with INDEX() for flexible lookups.

โ€ข Keep the lookup range consistent with the data you're searching.

โ€ข Use XLOOKUP() when you simply need to return a matching value.

๐Ÿ’ก Remember:

MATCH() answers:

๐Ÿ‘‰ "Where is this value?"

INDEX() answers:

๐Ÿ‘‰ "What value is at this position?"

Together, they form one of Excel's most powerful lookup combinations.

Double Tap โค๏ธ For More
  • โค 7
  • ๐Ÿ‘ 1
More from @excel_analyst
  1. Oct 8, 2026๐ŸŽ“ ๐— ๐—ถ๐—ฐ๐—ฟ๐—ผ๐˜€๐—ผ๐—ณ๐˜ ๐—™๐—ฅ๐—˜๐—˜ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐˜„๐—ถ๐˜๐—ต ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ฒ๐˜€! ๐Ÿš€๐Ÿ”ฅ Upgrโ€ฆ
  2. Oct 7, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 5 This part focuses on Tables, Filters & Data Analysis shortcutsโ€ฆ
  3. Oct 7, 2026๐Ÿš€๐—ฃ๐—ฎ๐˜† ๐—”๐—ณ๐˜๐—ฒ๐—ฟ ๐—ฃ๐—น๐—ฎ๐—ฐ๐—ฒ๐—บ๐—ฒ๐—ป๐˜ ๐—ง๐—ฟ๐—ฎ๐—ถ๐—ป๐—ถ๐—ป๐—ด | ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ ๐—ฎ ๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐโ€ฆ
  4. Oct 7, 2026๐— ๐—ฎ๐˜€๐˜๐—ฒ๐—ฟ ๐—ฃ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—•๐—œ ๐—ณ๐—ผ๐—ฟ ๐—™๐—ฅ๐—˜๐—˜! ๐Ÿ”ฅ Learn Power BI through these FREE learninโ€ฆ
  5. Sep 29, 2026๐Ÿ“Š Excel Shortcuts โ€” Part 3 This part focuses on Formatting Shortcuts โ€” quickly format celโ€ฆ
  6. Sep 29, 2026๐—™๐—ฅ๐—˜๐—˜ ๐—ฅ๐—ฒ๐˜€๐—ผ๐˜‚๐—ฟ๐—ฐ๐—ฒ๐˜€ ๐—ง๐—ผ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป ๐—”๐—œ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿš€ โ€‹ Explore 6 free resourceโ€ฆ
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 โ†’