I don't pretend to understand what the SUMPRODUCT formulas are meant to do but the concatenation +0 results in numeric values
This part counts the number of digits that repeat from the previous row.
=SUMPRODUCT(--(B29:D29=B28:D28))
This part identifies the 3-digit value Col E as S(Single, (236); D(Double,022);C(Consecutive with 0 and 9 considered consecutive; T( Triple digits,222). The formula also used in a 4-digit game, where the other alpha characters come into play. DD( double digits, 2244), Q( Quads, 1111,2222)
IF(OR(AND(ISNUMBER(MATCH({0,1,2,9},MID($E28,{1,2,3},1)+0,0))),AND(ISNUMBER(MATCH(MIN(MID($E28,{1,2,3},1)+0)+{0,1,2,3},MID($E28,{1,2,3},1)+0,0)))),"C",IF(SUM(IF(FREQUENCY(MID($E28,{1,2,3},1)+0,MID($E28,{1,2,3},1)+0)=2,1))=2,"DD",INDEX({"S","D","T","Q"},MAX(FREQUENCY(MID($E28,{1,2,3},1)+0,MID($E28,{1,2,3},1)+0)))))