In A13:

=LEFT(A2,2)

copied down

in H13:

=LEFT(H2,2)

copied down

in F13:

=LEFT(F2,FIND("-",F2)-1)&"#"&IF(MID(A2,3,10)="",1,MID(A2,3,10))

copied down

in I13:

=LEFT(I2,FIND("-",I2)-1)&"#"&IF(MID(H2,3,10)="",1,MID(H2,3,10))

copied down