The CONCATIF() function is designed to connect text from different cells according to a given condition.
=CONCATIF(LookupValue; LookupArray; ReturnArray; [Delimiter])
The CONCATIF() function is easy to use. You just need to specify the search range and the column from which the values will be taken and Excel will automatically combine all common values into one cell using the specified separator:
=CONCATIF(LookupValue; {Lookup Array}; {Return Array}; Delimiter)
We will have the following result:
This example uses the following values:
You can use the CONCATIF() function by installing a free extension YouLibreCalc.xlam .
After that, this function will be available in all files that will be opened in Excel.