The INDEX and MATCH functions in Google Sheets can be used together to perform more advanced lookups. These functions allow you to search for a value in a range of cells and return a value from a different column or row in the same row as the search value.
Here’s how to use INDEX and MATCH together:
- In the cell where you want to display the result of the lookup, enter the formula: =INDEX(range, MATCH(search_key, search_range, [match_type]))
- Replace “range” with the range of cells that contains the data you want to return.
- Replace “search_key” with the value you want to search for.
- Replace “search_range” with the range of cells that contains the data you want to search through.
- Replace “[match_type]” with the type of match you want to perform. You can use 0 for an exact match, 1 for the closest match greater than the search value, or -1 for the closest match less than the search value.
Here’s an example of how to use INDEX and MATCH together:
=INDEX(A1:B5, MATCH(“apple”, A1:A5, 0))
This formula searches through the range A1:A5 for the value “apple” and returns the value from the same row in the second column (B1:B5).
I hope this helps! Let me know if you have any questions.