ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. MATCH Type 0 vs 1 vs -1 Explained

MATCH Type 0 vs 1 vs -1 Explained

By ExcelReady Team·Updated October 30, 2026·8 min read

The short answer

MATCH's third argument decides how it matches. 0 finds an exact match in any order. 1, the default, finds the largest value less than or equal to the lookup value and needs the list sorted smallest to largest. -1 finds the smallest value greater than or equal to it and needs the list sorted largest to smallest.

Key takeaways

  • Match type 0 is an exact match and works on unsorted data. Use it for IDs, names and codes.
  • Match type 1 is the default: next value down, on data sorted ascending. It's how tier and band lookups work.
  • Match type -1 is next value up, on data sorted descending.
  • Leaving out the match type means 1, which can return a wrong row on unsorted data without any error.
  • XMATCH reverses the meaning: its -1 is next smaller and its 1 is next larger.
On this page+
  1. MATCH types at a glance
  2. The syntax
  3. Match type 0: exact match
  4. Match type 1: largest value less than or equal
  5. Match type -1: smallest value greater than or equal
  6. The same lookup with all three types
  7. When to use each match type
  8. How XMATCH changes the numbers
  9. Common mistakes with MATCH types
  10. Our recommendation
  11. Practise it

MATCH type 0, 1 and -1 are the three settings of MATCH's third argument, and they decide what counts as a match. Type 0 finds an exact match in any order. Type 1 (the default) finds the largest value that is less than or equal to what you're looking for, on a list sorted smallest to largest. Type -1 finds the smallest value that is greater than or equal to it, on a list sorted largest to smallest. This guide is for anyone using INDEX MATCH who wants to know which number to type, and why the wrong one can give a quietly wrong answer.

MATCH types at a glance#

Each match type answers a different question about the same list.

FeatureType 0Type 1 (default)Type -1
FindsAn exact matchLargest value ≤ the lookup valueSmallest value ≥ the lookup value
Data must be sortedNoSmallest to largestLargest to smallest
No match#N/A#N/A only if the value is below the first item#N/A only if the value is above the first item
Wildcards (*, ?) for textYesNoNo
Typical useIDs, names, codes, headersTiers, bands, tax bracketsSmallest size or pack that fits
Same asVLOOKUP with FALSEVLOOKUP with TRUENo VLOOKUP equivalent

MATCH always returns a position (1 for the first item, 2 for the second…), not the value itself. You usually wrap it in INDEX to bring back a value from that position.

The syntax#

Excel formula
=MATCH(lookup_value, lookup_array, [match_type])
  • lookup_value: what to find.
  • lookup_array: a single row or column to search.
  • match_type: 0, 1 or -1. If you leave it out, Excel uses 1.

That default is the single most important thing to remember. Most lookups need an exact match, so most MATCH formulas you write should end in ,0). The MATCH function guide covers the basics, and our INDEX MATCH beginner's guide shows how the two fit together.

Match type 0: exact match#

Type 0 looks for a cell that equals the lookup value and returns its position. The order of the list doesn't matter, and the comparison ignores upper and lower case. If several cells match, it returns the first one. If none do, it returns #N/A.

For text, type 0 also accepts wildcards: =MATCH("Gr*",A2:A9,0) finds the first item starting with "Gr". Use type 0 for anything that should match exactly: employee IDs, SKUs, names, month headers in a two-way lookup.

Match type 1: largest value less than or equal#

Type 1 walks down an ascending list and stops at the last value that isn't bigger than the lookup value. This is how you place a number into a band. Here is a commission tier table, sorted smallest to largest:

AB
1FromTier
20Bronze
325,000Silver
450,000Gold
5100,000Platinum
Excel formula
=MATCH(62000,A2:A5,1)

62,000 is not in the list. The largest value at or below it is 50,000, in position 3. Wrap it in INDEX to get the tier name:

Excel formula
=INDEX(B2:B5,MATCH(62000,A2:A5,1))

The result is Gold. This is exactly what VLOOKUP does with TRUE as its last argument; our guide to VLOOKUP approximate match for tiers and bands uses the same idea.

Match type -1: smallest value greater than or equal#

Type -1 is the mirror image: on a list sorted largest to smallest, it finds the smallest value that is still big enough. A good example is choosing a shipping box. These boxes are listed by capacity, biggest first:

CD
1Max kgBox
250Crate
330Large
420Medium
510Small
Excel formula
=MATCH(18,C2:C5,-1)

18 kg doesn't fit the Small box (10). The smallest capacity that is at least 18 is 20, in position 3, so =INDEX(D2:D5,MATCH(18,C2:C5,-1)) returns Medium. A 55 kg parcel returns #N/A, because no box is big enough.

The same lookup with all three types#

Here is what happens when you search the tier list in A2:A5 (0, 25,000, 50,000, 100,000) with each type:

FormulaResultWhy
=MATCH(50000,A2:A5,0)350,000 is in the list, in position 3
=MATCH(62000,A2:A5,0)#N/A62,000 isn't in the list exactly
=MATCH(62000,A2:A5,1)350,000 is the largest value ≤ 62,000
=MATCH(62000,A2:A5)3Same as type 1, because 1 is the default
=MATCH(-5,A2:A5,1)#N/ANothing in the list is ≤ -5
=MATCH(62000,A2:A5,-1)UnreliableThe list is ascending, but -1 expects descending

That last row is the trap: type 1 and -1 assume a sort order and don't check it. On the wrong order they can return a wrong position or #N/A, and nothing warns you.

When to use each match type#

Choose the match type from the question, not from habit:

  • Use 0 whenever the lookup value should appear in the list exactly: IDs, codes, names, column headers. This is the right choice in most INDEX MATCH formulas and in job tests.
  • Use 1 for "which band does this number fall into?" questions, with the band start values sorted smallest to largest: commission tiers, grade boundaries, tax brackets, shipping weight bands.
  • Use -1 for "what's the smallest option that is big enough?" questions, with the options sorted largest to smallest: box sizes, pack sizes, capacity limits.

MATCH comes up in almost every list of Excel interview questions, and "what does the 0 mean?" is a favourite follow-up.

How XMATCH changes the numbers#

XMATCH, in Excel 2021, Excel 2024 and Microsoft 365, uses a match_mode argument that looks similar but means something different:

MeaningMATCHXMATCH
Exact match00 (the default)
Exact or next smaller1 (default, needs ascending sort)-1 (any order)
Exact or next larger-1 (needs descending sort)1 (any order)
Wildcard match0 with * or ?2

So =XMATCH(62000,A2:A5,-1) returns 3, like =MATCH(62000,A2:A5,1), and =XMATCH(18,C2:C5,1) returns 3, like =MATCH(18,C2:C5,-1). If you switch between the two, check the sign every time. Our comparison of MATCH vs XMATCH covers the other differences.

Common mistakes with MATCH types#

These are the slips that cause most MATCH errors:

  1. Leaving out the match type. You get type 1, which can return the wrong row on unsorted data.
  2. Using 1 or -1 on unsorted data. Sort the list in the direction the type expects, or use XMATCH.
  3. Using 0 for bands. An exact match on 62,000 finds nothing in a tier table.
  4. Copying XMATCH's -1 into MATCH. The signs are reversed between the two functions.
  5. Hidden spaces or numbers stored as text. An exact match fails if "P-101 " has a trailing space. Clean the data first; our comparison of TRIM vs CLEAN and of SUBSTITUTE vs REPLACE shows how.

Our recommendation#

Type 0 by default. Most real lookups are exact, and 0 is the only type that doesn't depend on sort order. Switch to 1 only for band lookups on a list sorted smallest to largest, and use -1 only for the rarer "smallest option that fits" lookup on a list sorted largest to smallest. If you have Excel 2021 or later, XMATCH's modes don't need sorting, but remember the reversed signs.

In short: 0 for exact, 1 for "this band or below", -1 for "this size or above".

Practise it#

Try the tier exercise on this page, which uses INDEX with MATCH type 1. Then open the INDEX and MATCH lesson to build exact-match lookups with 0, including a two-way lookup, and the VLOOKUP approximate match lesson to see band lookups and what happens when someone re-sorts the tier table.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Each tier starts at the amount in column A, sorted smallest to largest. In E2, find the tier for the sales in D2. Use INDEX on the tier names B2:B5, with MATCH type 1 on A2:A5 to find the right row.

fx
ABCDEF
1
From
Tier
Sales
Tier
2
0
Bronze
62000
3
25000
Silver
4
50000
Gold
5
100000
Platinum
6
7
8

Tip: MATCH(D2,A2:A5,1) finds the row of the largest start value at or below 62,000. Put it inside INDEX(B2:B5, …).

Practise this in a lesson

LessonINDEX and MATCHCombine INDEX and MATCH to look up in any direction, including returning a column to the left of the one you search.LessonVLOOKUP approximate matchUse VLOOKUP with TRUE to place values into tiers like commission bands, tax brackets or grades.Function guideMATCHLearn how Excel's MATCH finds the position of a value, why the 0 matters, and how it powers INDEX/MATCH. Includes a live exercise.

Frequently asked questions

What does the 0 mean in MATCH?

+

0 tells MATCH to find an exact match. It returns the position of the first cell that equals the lookup value, in any order, or #N/A if there is none.

What is the default match type in MATCH?

+

  1. If you leave out the third argument, MATCH finds the largest value that is less than or equal to the lookup value and assumes the list is sorted smallest to largest.

When would I use match type -1?

+

When a list is sorted largest to smallest and you want the smallest value that is still big enough, such as the smallest box, size or pack that holds a given quantity.

Why does MATCH return the wrong position with no error?

+

You are probably using match type 1 (or no match type) on data that isn't sorted ascending. MATCH assumes the order and stops in the wrong place. Use 0 for exact lookups, or sort the list.

Is XMATCH's match mode the same as MATCH's match type?

+

No. In XMATCH, 0 is exact (the default), -1 is exact or next smaller and 1 is exact or next larger, which is the opposite of MATCH's 1 and -1. XMATCH also doesn't need sorted data for those modes.

Sources

  • MATCH function - Microsoft Support
  • XMATCH function - Microsoft Support
  • INDEX function - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. MATCH types at a glance
  2. The syntax
  3. Match type 0: exact match
  4. Match type 1: largest value less than or equal
  5. Match type -1: smallest value greater than or equal
  6. The same lookup with all three types
  7. When to use each match type
  8. How XMATCH changes the numbers
  9. Common mistakes with MATCH types
  10. Our recommendation
  11. Practise it

Keep reading

Comparisons· 7 min read

SUBSTITUTE vs REPLACE in Excel

Use SUBSTITUTE when you know what text to change, such as every dot in a phone number: =SUBSTITUTE(A2,".","-"). Use REPLACE when you know where the text is, such as the first 3 characters of a code: =REPLACE(A2,1,3,"NEW"). SUBSTITUTE works by content and REPLACE works by position.

Comparisons· 7 min read

TRIM vs CLEAN in Excel

TRIM removes extra spaces: every space at the start and end, and all but one space between words. CLEAN removes non-printing characters with codes 0 to 31, such as line breaks and tabs. Use TRIM for spacing problems, CLEAN for hidden characters, and =TRIM(CLEAN(A2)) when imported text has both.

Tests & careers· 5 min read

25 Excel Interview Questions (With Answers You Can Practise)

Common Excel interview questions cover formulas and order of operations, relative and absolute ($) references, VLOOKUP, INDEX MATCH and XLOOKUP, IF with AND or OR, COUNTIFS and SUMIFS, pivot tables, filters and fixing errors. Good answers name the function, give its arguments in order and explain one limitation or edge case.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free