TheDwarfClunk,
Welcome to the forum!
Attached is a modified version of your posted workbook.
Note that there is no need to use Text-To-Columns. The formula can handle it without splitting them into multiple cells.
Also, because "A" can be mistakenly found when an "A*" is present, the formula converts "A*" to "S" for calculation purposes.
Row 1 is a header row, so actual data starts on row 2
In column D is the letter to look up
In column E is the corresponding value of that letter
In cell B2 and copied down is this formula to get the total value of the strings that are listed in column A:
=IF(A2="","",SUMPRODUCT((LEN(SUBSTITUTE(A2,"A*","S"))-LEN(SUBSTITUTE(SUBSTITUTE(A2,"A*","S"),$D$2:$D$8,"")))*$E$2:$E$8))
Bookmarks