If your code string is a constant 10 characters and breaks down into substrings of 2-4-2-2 characters you can do this using vlookups and a combination of Left, Mid and Right Functions.
Sheet1 - Results
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 126px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD></TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="FONT-FAMILY: Verdana">ACAFDEQZPO</TD><TD>Prova3</TD><TD>Testo3</TD><TD>Sing3</TD><TD>Paro3</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>B1</TD><TD>=VLOOKUP(LEFT(A1,2),$G$1:$H$3,2,FALSE)</TD></TR><TR><TD>C1</TD><TD>=VLOOKUP(MID(A1,3,4),$I$1:$J$3,2,FALSE)</TD></TR><TR><TD>D1</TD><TD>=VLOOKUP(MID(A1,7,2),$K$1:$L$3,2,FALSE)</TD></TR><TR><TD>E1</TD><TD>=VLOOKUP(RIGHT(A1,2),$M$1:$N$3,2,FALSE)</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
Sheet1 - lookup ranges
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 46px"><COL style="WIDTH: 83px"><COL style="WIDTH: 43px"><COL style="WIDTH: 85px"><COL style="WIDTH: 43px"><COL style="WIDTH: 85px"><COL style="WIDTH: 49px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD></TD><TD>G</TD><TD>H</TD><TD>I</TD><TD>J</TD><TD>K</TD><TD>L</TD><TD>M</TD><TD>N</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="FONT-FAMILY: Verdana">AA</TD><TD>Prova1</TD><TD>AAAA</TD><TD>Testo1</TD><TD>AA</TD><TD>Sing1</TD><TD>AA</TD><TD>Paro1</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">2</TD><TD style="FONT-FAMILY: Verdana">AB</TD><TD>Prova2</TD><TD>AAAB</TD><TD>Testo2</TD><TD>AB</TD><TD>Sing2</TD><TD>AB</TD><TD>Paro2</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">3</TD><TD style="FONT-FAMILY: Verdana">AC</TD><TD>Prova3</TD><TD>AFDE</TD><TD>Testo3</TD><TD>QZ</TD><TD>Sing3</TD><TD>PO</TD><TD>Paro3</TD></TR></TBODY></TABLE>
Hope this helps.