Excel Tutorial
Excel tutorials, quizzes & AI guides — all levels
RSS
  • Online Excel Exercises
  • Training
  • Excel Tests
  • Sitemap
  • Premium Quizzes
  • Shop
  • My account

How to use the MATCH function in Excel?

Lookup functions
Reading time: 2 minutes
Views: 8,966

The MATCH function in Excel returns the position of a value in a range of cells. This function is very useful for creating dynamic research.
The MATCH function needs 3 arguments

  1. The lookup value. It’s the value you want to find in a range of cells
  2. Range of the cells where is the value. It’s necessarily 1 column or 1 row
  3. [Optional] The mode of research. Exact or Approximate (default value)

=MATCH(Lookup Value,Range of cells,mode of research)

Result returns by MATCH

In the following example, we have the list of the days in a week. In E1, we select one day of the dropdown, and in E2, we write the following formula

=MATCH(E1,$C$1:$C$7,0)

MATCH returns the position of the days

The value returned is the position in the list of column C

  • 1 for Monday
  • 2 for Tuesday
  • 3 for Wednesday
  • …

Let’s change the order of the days

Now, the formula is the same, but we have changed the order of the name❗

MATCH returns the postion according the sort of the data

Now we have

  • 1 for Thursday
  • 2 for Monday
  • 3 for Sunday

With these 2 examples, you can see that the order of your data is crucial for the result returned by the MATCH function.

Explanation of the last parameter

In this example, the last parameter has not been indicated. In this situation, the formula returns a wrong result ⛔

Sunday is in the third position on the list and not 5.

The last argument is not fill and the MATCH function returns a wrong result

So to be sure that your function MATCH returns the exact position in your list, it is compulsory to add the value 0 (option exact match).

Result if the value isn’t found.

If the value you search for is not in the list, the function returns #N/A

Situation where MATCH returns NA

MATCH function in action

Return the position of an item in a list isn’t interesting. But if you associate MATCH with other functions, you can create GREAT dynamic dashboard.

Associate with INDEX

When you build a formula with INDEX, the best way to return a value from your reference table is to use the MATCH function.

Dynamic sum

In this example, the sum is recalculated according to the selected date. To do this, we have used a combination of SUM, INDEX and MATCH functions in Excel.

Dynamic SUM with INDEX and MATCH

Dynamic VLOOKUP

When you search for a value with the VLOOKUP function, the third argument (the column to be returned) is often directly written. But with the MATCH function, you can create a dynamic document to return values from different columns.

VLOOKUP returns value from variable columns

Frédéric LE GUEN

Dynamic function, MATCH, VLOOKUP

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed Posts

  • Displaying Negative Numbers in Parentheses in Excel (310,065)
  • Top 10 Excel Functions You Must Know (232,001)
  • How to make automatic calendar in Excel (212,775)
  • Dash for a zero in Excel automatically (190,812)
  • Converting a Date from YYYYMMDD to DD/MM/YYYY in Excel (171,033)
image excel exercises
Excel Exercises
image excel quizzes
Excel Quizzes

How to use the MATCH function in Excel?

Reading time: 2 minutes
Views: 8,966

The MATCH function in Excel returns the position of a value in a range of cells. This function is very useful for creating dynamic research.
The MATCH function needs 3 arguments

  1. The lookup value. It’s the value you want to find in a range of cells
  2. Range of the cells where is the value. It’s necessarily 1 column or 1 row
  3. [Optional] The mode of research. Exact or Approximate (default value)

=MATCH(Lookup Value,Range of cells,mode of research)

Result returns by MATCH

In the following example, we have the list of the days in a week. In E1, we select one day of the dropdown, and in E2, we write the following formula

=MATCH(E1,$C$1:$C$7,0)

MATCH returns the position of the days

The value returned is the position in the list of column C

  • 1 for Monday
  • 2 for Tuesday
  • 3 for Wednesday
  • …

Let’s change the order of the days

Now, the formula is the same, but we have changed the order of the name❗

MATCH returns the postion according the sort of the data

Now we have

  • 1 for Thursday
  • 2 for Monday
  • 3 for Sunday

With these 2 examples, you can see that the order of your data is crucial for the result returned by the MATCH function.

Explanation of the last parameter

In this example, the last parameter has not been indicated. In this situation, the formula returns a wrong result ⛔

Sunday is in the third position on the list and not 5.

The last argument is not fill and the MATCH function returns a wrong result

So to be sure that your function MATCH returns the exact position in your list, it is compulsory to add the value 0 (option exact match).

Result if the value isn’t found.

If the value you search for is not in the list, the function returns #N/A

Situation where MATCH returns NA

MATCH function in action

Return the position of an item in a list isn’t interesting. But if you associate MATCH with other functions, you can create GREAT dynamic dashboard.

Associate with INDEX

When you build a formula with INDEX, the best way to return a value from your reference table is to use the MATCH function.

Dynamic sum

In this example, the sum is recalculated according to the selected date. To do this, we have used a combination of SUM, INDEX and MATCH functions in Excel.

Dynamic SUM with INDEX and MATCH

Dynamic VLOOKUP

When you search for a value with the VLOOKUP function, the third argument (the column to be returned) is often directly written. But with the MATCH function, you can create a dynamic document to return values from different columns.

VLOOKUP returns value from variable columns
Tags: Dynamic functionMATCHVLOOKUP

Frédéric LE GUEN

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net