1. Locate first occurrence of a student name
| Student |
| Alice |
| Bob |
| Alice |
| Bob |
| Alice |
| Bob |
=XMATCH("Alice", $A$2:$A$7, 0, 1)Result: 1
The formula looks for the exact text "Alice" in the Student column A2:A7. XMATCH scans from top to bottom (search_mode = 1) and finds "Alice" at the first position, so it returns 1. If "Alice" were not present, the function would return #N/A.