G4=IFERROR(IF(FIND("A",B4)=1,VALUE(RIGHT(B4,LEN(B4)-1))),0)+IFERROR(IF(FIND("A",C4)=1,VALUE(RIGHT(C4,LEN(C4)-1))),0)+IFERROR(IF(FIND("A",D4)=1,VALUE(RIGHT(D4,LEN(D4)-1))),0)+IFERROR(IF(FIND("A",E4)=1,VALUE(RIGHT(E4,LEN(E4)-1))),0)+IFERROR(IF(FIND("A",F4)=1,VALUE(RIGHT(F4,LEN(F4)-1))),0)
H4=IFERROR(IF(FIND("B",B4)=1,VALUE(RIGHT(B4,LEN(B4)-1))),0)+IFERROR(IF(FIND("B",C4)=1,VALUE(RIGHT(C4,LEN(C4)-1))),0)+IFERROR(IF(FIND("B",D4)=1,VALUE(RIGHT(D4,LEN(D4)-1))),0)+IFERROR(IF(FIND("B",E4)=1,VALUE(RIGHT(E4,LEN(E4)-1))),0)+IFERROR(IF(FIND("B",F4)=1,VALUE(RIGHT(F4,LEN(F4)-1))),0)