Assuming you have this: "DP 125DP 235 DP 555DP 652DP 555DP 012" in A1,
Then create helper column to determine number of DP items:
=SUM((LEN(A1)-LEN(SUBSTITUTE(A1,"DP","")))/2)
copied down..
then assuming your Lookup table is in H1 to I5, make sure column H is sorted in Ascending order... then you can apply this formula to sum corresponding values:
=SUMPRODUCT(--LOOKUP(MID(A1,FIND("^^",SUBSTITUTE(A1,"DP","^^",ROW(INDIRECT("1:"&$B1)))),6),$H$1:$H$5,($I$1:$I$5)))
copied down. Where B1 contains the Helper column result, correspondingly
Adjust ranges to suit.
Bookmarks