The built-in function VLOOKUP is one of the most powerful functions in LO Calc . But it has one significant drawback - it finds only the first occurrence of the desired value in the table and only in the far right column. But if you need the 2nd, 3rd and not the last one?
The modified VLOOKUPSEQ function can return any match (not just the first one found) from any specified column.
=VLOOKUPSEQ(LookupValue; LookupArray; ReturnArray; Seq)
The VLOOKUPSEQ() function is easy to use. You just need to specify the search range and the column from which the values will be taken, as well as the sequence number of the required match and LO Calc will automatically find and return the required value:
=VLOOKUPSEQ(LookupValue; Lookup Array; Return Array; Seq)
We will have the following result:
This example uses the following values:
You can use the function VLOOKUPSEQ() by installing the extension
Or its free version YouLibreCalc .
After that, this function will be available in all files that will be opened in LibreOffice Calc .