Identify subelements related to a sku in a separate table

Please check whether the formula is helpful.

=TEXTJOIN(";",TRUE,IF(LEFT($A$2:A$8,FIND("_",$A$2:$A$8)-1)=A12,$A$2:$A$8,""))

enter image description here


Here is a solution with pivot table (works in Office 365)

  • add a helper column with your main category, formula:
    =LEFT(A2,FIND("_",A2)-1)
  • insert a pivot table, make sure you check "add this data to the data model"
    enter image description here
  • move your category to rows
  • in power pivot tab select measures - new measure
  • enter this formula then press OK
    =CONCATENATEX(Range,[Variant],",")
    enter image description here
  • add your measure in values part of pivot table

enter image description here