The CONCATIF() function is designed to concatenate text from different cells according to a given condition.
=CONCATIF(LookupValue; LookupArray; ReturnArray; [Delimiter])
The CONCATIF() function is simple to use. You just need to specify the search range and the column from which values will be taken, and Excel (Calc) will automatically combine all common values into one cell using the specified delimiter:
=CONCATIF(LookupValue; {Lookup Array}; {Return Array}; Delimiter)
We will get the following result:
In this example, the following values are used:
You can use the function CONCATIF() by installing the YLC Utilities extension.
After that, this function will be available in all files that will be opened in Excel (LibreOffice Calc).