Hi,
In cell J3 apply this formula and drag it down:
=IFERROR(INDEX(C$2:C$18,MATCH(0,INDEX(COUNTIF(J$2:J2,C$2:C$18)+(C$2:C$18="")+ISNUMBER(C$2:C$18),),0)),"")
or apply this formula if you run Microsoft 365 or Excel 2021:
=UNIQUE(FILTER(C2:C18,(C2:C18<>"")*ISTEXT(C2:C18)))
In cell K3 apply this formula and drag it down:
=SUM((C$2:C$18=J3)*(D$2:F$18))
Hope this helps.