This solution assumes all the values are two occurrences of the same letter (e.g. AA, BB, etc). It also requires you to enter the formulas in J1 and K1 use Control-Shift-Enter. The formula in K1 can be copied to L1 through P1.
Sheet1
<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><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><TD>F</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><TD>O</TD><TD>P</TD></TR><TR style="HEIGHT: 18px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD>AA</TD><TD>CC</TD><TD>BB</TD><TD>AA</TD><TD>AA</TD><TD>CC</TD><TD>DD</TD><TD></TD><TD></TD><TD>AA</TD><TD>BB</TD><TD>CC</TD><TD>DD</TD><TD></TD><TD></TD><TD></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>J1</TD><TD>{=REPT(CHAR
(SMALL(CODE($A1:$G1),COLUMN(A1))),2)}</TD></TR><TR><TD>K1</TD><TD>{=REPT(IFERROR
(CHAR(SMALL(IF(CODE($A1:$G1)>CODE(J1),CODE($A1:$G1)),1)),""),2)}</TD></TR><TR><TD>L1</TD><TD>{=REPT(IFERROR
(CHAR(SMALL(IF(CODE($A1:$G1)>CODE(K1),CODE($A1:$G1)),1)),""),2)}</TD></TR><TR><TD>M1</TD><TD>{=REPT(IFERROR
(CHAR(SMALL(IF(CODE($A1:$G1)>CODE(L1),CODE($A1:$G1)),1)),""),2)}</TD></TR><TR><TD>N1</TD><TD>{=REPT(IFERROR
(CHAR(SMALL(IF(CODE($A1:$G1)>CODE(M1),CODE($A1:$G1)),1)),""),2)}</TD></TR><TR><TD>O1</TD><TD>{=REPT(IFERROR
(CHAR(SMALL(IF(CODE($A1:$G1)>CODE(N1),CODE($A1:$G1)),1)),""),2)}</TD></TR><TR><TD>P1</TD><TD>{=REPT(IFERROR
(CHAR(SMALL(IF(CODE($A1:$G1)>CODE(O1),CODE($A1:$G1)),1)),""),2)}</TD></TR></TBODY></TABLE></TD></TR><TR><TD>
Formula Array:
Produce enclosing { } by entering
formula with CTRL+SHIFT+ENTER!
</TD></TR></TBODY></TABLE>
Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4