How can I concatenate text with leading zeros

D

Dick

When I concatenate a number with leading zeros, the zeros are removed. How
can I retain them?
 
B

Beege

Dick said:
When I concatenate a number with leading zeros, the zeros are removed. How
can I retain them?

Dick,

Try & TEXT(A1,"00000") when concatenating?

Beege
 
G

Gord Dibben

If the numbers have leading zeros they are already text so should not drop the
zeros.

Unless, of course, the numbers are just formatted to show leading zeros.

In that case =TEXT(G7,"000000")&TEXT(G8,"000000")


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top