A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Created UDF Function
Step 1: Press ALT + F11 and paste the below code and save as excel macro workbook.
Public Function concateif(a As Range, b As String, c As Range)
For Each cell In a
If cell = b Then
f = f & c.Cells(cell.Row)
End If
Next
concateif = f
End Function
Step 2:
In Cell D1, add the below formula
=concateif(A1:A3,C1,B1:B3)
it will return the result as expected.