The built-in function VLOOKUP is one of the most powerful functions in Excel. But it has some drawbacks - it compares values in only one column. But what if you need to compare values in multiple columns at the same time?
The modified VLOOKUPMULTI function searches for a specified value in a range with multiple columns.
=VLOOKUPMULTI(LookupValue; LookupArray; ReturnArray)
The VLOOKUPMULTI() function is easy to use. You just need to specify the range to search, which can include many columns and the column from which the associated value will be returned, and Excel will automatically find and return the required result:
=VLOOKUPMULTI("US"; {Lookup Array}; {Return Array})
We will have the following result:
This example uses the following values:
You can use the VLOOKUPMULTI() function by installing the free extension YouLibreCalc.xlam .
After that, this function will be available in all files that will be opened in Excel.