The built-in function VLOOKUP is one of the most powerful functions in Excel. But it has some disadvantages - it compares values in only one column. But what if you need to compare values in multiple columns at once?
The modified function VLOOKUPMULTI searches for the specified value in a range with many 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 a free extension YouLibreCalc.xlam .
After that, this function will be available in all files that will be opened in Excel.