=A1&"-"&B1
copy formula down
if this helps please click yes, thanks
You could type your entry in one column and use a formula in another.
=left(a1,3)&"-"&mid(a1,4,255)
(255 is a big number large enough to retrieve that last portion)
Foo Foo Daddy wrote:
>
> How can I format my cell to display letters, a dash, then #s? For example:
> ABC-12345678, or 2DE-12347562, or FG3-46518673?
--
Dave Peterson
Without using VBA, your custom format can only hard-code the letters. You
could use up to three conditions related to the number value to decide which
letters to use.
e.g.
Format/Cells/Number/Custom Type:
"ABC-"00000000
or
"2DE-"00000000
You would enter only the 8 digits and the value would look like the above.
If you want to be able to enter the entire string, and have it appear formatted
as above, you could either use a helper column to display your results in
another column e.g. =left(a1,3)&"-"&mid(a1,4,8) Or use a VBA macro to do the
same thing "in situ"
--ron