The formula looks like this:
=INDEX(A1:C4, 4, 3)
This formula will return 88 because that is the score Alice got on her English test.
The MATCH function in Excel searches a range of data for a specified value and then returns its relative position. You can then use the returned value with functions like INDEX to retrieve and manipulate the data dynamically.
The syntax of the MATCH function is:
MATCH(value_to_search, range_to_search_in, [match_type])
Here, value_to_search is the value you want to find and range_to_search_in is the range in which you are searching for that value.
The match_type parameter specifies the type of match to use. Here are the types you can use:
Match type | Describe |
---|---|
1 (default) | Returns the largest value less than or equal to value_to_search |
0 | Returns exact match |
-1 | Returns the smallest value greater than or equal to value_to_search |
In the example, we will use the MATCH function to find Carol's position in the range, requiring that it be an exact match.
Here is what the function would look like in Excel:
=MATCH("Carol", A2:A6, 0)
After running the above formula, the function will return 3 because Carol's exact match is the third item in the range.
With the XLOOKUP function, you specify a value to look up in one range and then retrieve the corresponding value from another range. Unlike the HLOOKUP and VLOOKUP functions, XLOOKUP allows you to look up in any direction, making it more flexible to look up data in a spreadsheet.
The syntax of the XLOOKUP function is:
XLOOKUP(value_to_look_up, range_to_check, range_to_return, [if_value_not_found], [match_type], [search_mode])
In this syntax, value_to_look_up is the value you are looking for, range_to_check is the range from which the value you want to retrieve is, and range_to_return is where the corresponding value of the lookup value will come from. You only need to specify these 3 parameters for the function to work, so these are the only ones we will focus on.
Let's clarify this with an example based on the screenshot below. The example wants to search for Banana (A2) and return its color from the corresponding column (B) .
Here's how the formula would look in Excel:
=XLOOKUP("Banana", A:A, B:B)
Running this formula will return Yellow (B2) , the corresponding value based on the lookup of the Banana value.
Mastering these six Excel functions - FIND, SORT, FILTER, INDEX, MATCH, and XLOOKUP - will help you quickly locate, sort, and extract information from large data sets. This can dramatically improve your Excel productivity and your ability to analyze data effectively.