Hi, you could try this option which adopts the logic quoted above.
Excel 2013/2016
| A | B |
---|
1234567WXY | | |
1234567WXYZ | | |
A1234567WXYZ | | |
AB1234567WXYZ | | |
ABC1234567WXYZ | | |
ABCD1234567WXYZ | | |
ABCDE1234567WXYZ | | |
ABCDEF1234567WXYZ | | |
<colgroup><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFF00]#FFFF00[/URL] , align: right"]1234567[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]1234567[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]1234567[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]1234567[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]1234567[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]1234567[/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]1234567[/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]1234567[/TD]
</tbody>
Sheet1
[TABLE="width: 85%"]
<tbody>[TR]
[TD]
Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B1[/TH]
[TD="align: left"]=MID(
A1,MAX(1,LEN(A1)-10),7)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]