INDEX and MATCH in Excel: what they do and how to use them
MATCH finds which position a value sits at in a list, and INDEX returns whatever is at a given position. Put together, they do a lookup that can go in any direction.
Before XLOOKUP existed, this pair was the answer to everything VLOOKUP could not do. It can look to the left. It also keeps working when someone inserts a column in the middle of the table.
What trips people up
Remember the zero at the end of MATCH. Without it MATCH assumes the list is sorted and returns wrong answers without complaining.
Set by your computer's language, not by the file. A frequent cause of a correct-looking formula being rejected.
Excel version
XLOOKUP, IFS, TEXTBEFORE and TEXTJOIN need Microsoft 365 or 2021; older versions return #NAME? instead. Choosing the older one switches every walkthrough to a formula that works there.