Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to merge different columns like:

AB 0054 00000137

I do it this way

=A1&B1&C1

It works but my Zeroes get lost.

The text in my columns has been formatted in "personal" with zeroes before what's contained in the cell. If I change cell to text or numeric I lose zeroes.

Any hint?

share|improve this question
up vote 2 down vote accepted

=text(A1, "<your number format>") & text(B1, "<your number format>") & text(C1, "<your number format>")

share|improve this answer
    
What do you mean by "your number format"? – Pitto Feb 21 '11 at 11:18
    
Whatever format you've defined for the numbers in the columns. – Mike Scott Feb 21 '11 at 11:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .