If you want to automate this, then in cell B10, you can put this formula and copy down:
=INDEX(INDIRECT(MATCH(RIGHT(A10,1),$A$1:$A$6,FALSE )&":"&MATCH(RIGHT(A10,1),$A$1:$A$6,FALSE)),MATCH(9 .99999999999999E+307,INDIRECT(MATCH(RIGHT(A10,1),$ A$1:$A$6,FALSE)&":"&MATCH(RIGHT(A10,1),$A$1:$A$6,F ALSE))))