Find the position of a value within a range.
The MATCH function returns the relative position of a value inside a range. Its syntax is =MATCH(lookup_value, lookup_array, match_type). Match type 0 means an exact match. For example, =MATCH(30,A1:A6,0) returns 3 if 30 is in the 3rd cell.
Find the position of the value in D1 within the range A1:A6 (exact match = 0) and place the result in E1.
Click cell E1, type your formula and press Enter.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| List | Lookup | Position | ||||
| 1 |
10
|
30
|
||||
| 2 |
20
|
|||||
| 3 |
30
|
|||||
| 4 |
40
|
|||||
| 5 |
50
|
|||||
| 6 |
60
|
|||||
| 7 |