The built-in function VLOOKUP is one of the most powerful functions in LO Calc. 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 multiple columns, and the column from which the related value will be returned, and LibreOffice Calc 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.oxt or its full-featured version YLC_Utilities.oxt .
After that, this function will be available in all files that are opened in LibreOffice Calc.