I need to format a cell which is mainly numeric except for one letter.

I need it to look like:
Code:
1-23-456-78-9A-12345
When I try to format it by creating a custom format it won't let me. This is what I am doing.

Code:
#-##-###-##-#@-#####