A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
A solution using Excel formulas, though a long formula, and valid for upto 2 occurrences of a type in one cell. Refer below image:
Enter below formula as an array formula (CTRL+SHIFT+ENTER) in cell D2 and copy down:
=SUM(IF(ISNUMBER(VALUE(IFERROR(TRIM(RIGHT(SUBSTITUTE(TRIM(LEFT(SUBSTITUTE($A$2:$A$10,C2,REPT(" ",255)),255)),",",REPT(" ",255)),255)),0))),VALUE(IFERROR(TRIM(RIGHT(SUBSTITUTE(TRIM(LEFT(SUBSTITUTE($A$2:$A$10,C2,REPT(" ",255)),255)),",",REPT(" ",255)),255)),0))))+SUM(IF(ISNUMBER(VALUE(IFERROR(TRIM(RIGHT(SUBSTITUTE(TRIM(LEFT(SUBSTITUTE(SUBSTITUTE($A$2:$A$10,C2,"?",1),C2,REPT(" ",255)),255)),",",REPT(" ",255)),255)),0))),VALUE(IFERROR(TRIM(RIGHT(SUBSTITUTE(TRIM(LEFT(SUBSTITUTE(SUBSTITUTE($A$2:$A$10,C2,"?",1),C2,REPT(" ",255)),255)),",",REPT(" ",255)),255)),0))))
Regards,
Amit Tandon