---
title: "How to Use MATCH in Excel — Griddy"
description: "MATCH returns the position of a value inside a row or column. Use it when a lookup needs the row number, column number, or field position."
canonical_url: "https://getgriddy.ai/blog/how-to-use-match-function-in-excel/"
---

[Blog](https://getgriddy.ai/blog/)/Excel

Excel

# How to Use MATCH in Excel

MATCH returns the position of a value inside a row or column. Use it when a lookup needs the row number, column number, or field position.

Do this with AI

[Try Griddy free](https://app.getgriddy.ai/login?mode=register&next=%2F)

Start in your browser. Also works with Excel and Google Sheets.

[By Justin Freels](https://getgriddy.ai/about/)/Updated August 20, 2026/5 min read

MATCH returns the position of a value inside a single row or column. It does not return the value itself. It gives you the number another formula can use, usually INDEX.

Use MATCH when you need to find where a month, account, client, status, or header appears in a list.

## The syntax

fx

`=MATCH(lookup_value, lookup_array, [match_type])`

- **lookup\_value** - the value you want to find
- **lookup\_array** - the one-row or one-column range to search
- **\[match\_type\]** - use `0` for exact match, `1` for approximate ascending match, or `-1` for approximate descending match

For most operating sheets, exact match is the one you want.

fx

`=MATCH("March", B1:M1, 0)`

That returns the position of March inside the header row.

## Example: find the month column in a budget

Suppose row 1 contains month headers from January through December, and column A contains budget categories.

You want a formula that can find the column position for the month selected in cell `P1`.

**Step 1. Put the selected month in a control cell**

Cell `P1` contains:

```
April
```

**Step 2. Match that month against the header row**

fx

`=MATCH(P1, B1:M1, 0)`

If April is the fourth month in the range `B1:M1`, the formula returns `4`.

**Step 3. Use the position inside INDEX**

If the Marketing budget row is `B6:M6`, this returns the Marketing value for the selected month:

fx

`=INDEX(B6:M6, MATCH(P1, B1:M1, 0))`

Now the selected month can change without rewriting the formula.

TIP

Use `0` as the match type when matching names, labels, months, statuses, or IDs.

## MATCH vs XLOOKUP

XLOOKUP is usually easier when you want the result directly. MATCH earns its keep when the thing you need is a position:

- which column contains the selected month
- which row contains a client ID
- where a field appears after an export changes column order
- which item is first in a ranked list

It also pairs well with INDEX in workbooks that need to stay compatible with older Excel setups.

## Common issues

| Issue | Cause | Fix |
| --- | --- | --- |
| `#N/A` | The lookup value is not found | Check spelling, spaces, and data type |
| Wrong position | Approximate match was used accidentally | Use `0` for exact match |
| `#VALUE!` | The lookup array is two-dimensional | Use one row or one column only |
| Unexpected miss | One value is text and the other is a number | Normalize the source values |

## The Griddy way

MATCH is simple until an export changes column order and half the workbook starts pointing at the wrong field.

> "Find the column named April and use it to return the budget value for each category"

Griddy can build the MATCH or INDEX MATCH logic, apply it across the rows, and keep the formulas tied to the header labels instead of hard-coded positions.

## A reliable audit sequence

Use MATCH as a position finder, then make the return step visible. First confirm that the lookup value and lookup range use the same type: a number stored as text will not behave like a numeric value in an exact match. Next use `0` unless you intentionally need an approximate banding lookup. Finally, pair the position with INDEX when you need the related value:

fx

`=INDEX(D2:D13,MATCH("March",B2:B13,0))`

If the formula returns `#N/A`, test whether the key really exists and whether extra spaces or inconsistent capitalization are involved. If the key can be absent, wrap the result with `IFNA` and show a review label rather than masking every error with a blank. This keeps missing data distinguishable from a legitimate blank result.

## Sources

- [Microsoft Support: MATCH function](https://support.microsoft.com/en-us/office/match-function-e8dffd45-c762-47d6-bf89-533f4a37673a)
- [Microsoft Support: INDEX function](https://support.microsoft.com/en-us/office/index-function-a5dcf0dd-996d-40ef-9da7-028fbbf0e99a)

Do this with AI

## Turn the instructions into a finished spreadsheet.

Tell Griddy what you need in plain English, then inspect and keep editing the result in the browser, Excel, or Google Sheets.

[Try Griddy free](https://app.getgriddy.ai/login?mode=register&next=%2F)Start in your browser. No download required.

Also works with[Excel](https://appsource.microsoft.com/en-us/product/office/wa200008745)[Google Sheets](https://workspace.google.com/marketplace/app/griddy/206105793696)

Use this on real templates

## Use MATCH when reports need flexible positions

MATCH is most useful in budget and billing sheets where month headers, account names, or exported field positions can move.

[Finance](https://getgriddy.ai/templates/finance/)

[Finance ### Budget Tracker Track income, expenses, and savings in one place. Line items, budgeted vs actual totals, and monthly net savings — free to use in your browser. Open template](https://getgriddy.ai/templates/budget-tracker/)[Finance ### Small Business Budget Plan revenue, direct costs, overhead, and EBITDA in one compact operating budget. Keep H1 totals, margin, and owner notes visible without building a giant finance model. Open template](https://getgriddy.ai/templates/small-business-budget/)[Finance ### Small Business Budget for Retail Plan retail sales, inventory, labor, occupancy, and operating costs with type-aware planned-versus-actual totals in three sheets. Open template](https://getgriddy.ai/templates/small-business-budget-for-retail/)[Finance ### Invoice Template Professional invoice template with automatic subtotal, tax, and total calculations. Customise with your logo and send in minutes. Open template](https://getgriddy.ai/templates/invoice-template/)

[All posts](https://getgriddy.ai/blog/)

Do this with AI

## Ask Griddy to do this for you.

Describe the result in plain English—no formula knowledge required.

[Try Griddy free](https://app.getgriddy.ai/login?mode=register&next=%2F)Start in your browser. No download required.

Also works with[Excel](https://appsource.microsoft.com/en-us/product/office/wa200008745)[Google Sheets](https://workspace.google.com/marketplace/app/griddy/206105793696)

About this guide

Written by Justin Freels, Founder, Griddy.

Updated August 20, 2026/5 min read

Related templates

[Finance](https://getgriddy.ai/templates/finance/)

[Budget Tracker](https://getgriddy.ai/templates/budget-tracker/)[Small Business Budget](https://getgriddy.ai/templates/small-business-budget/)[Small Business Budget for Retail](https://getgriddy.ai/templates/small-business-budget-for-retail/)[Invoice Template](https://getgriddy.ai/templates/invoice-template/)
