Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 with the help of the above link i prefixed the 0 in excel.

Now i want to concatenate these columns A &B to C.

Please let me know how to do that.

column A      column B           column C
06789         00054              Expected: 0678900054
                                 Actual:   0678954
share|improve this question
What's your current formula? What are formatting settings for C? – user 99572 is fine Jul 18 '13 at 6:48

Remember that concatenating numbers is actually concatenating the underlying number (6789 and 54 in your example) not the formatted string.

You can do what you want using:


where "000000" is the formatter you applied.

share|improve this answer
My question is, if they are numbers how are they displayed with leading 0's in the first place? – Raystafarian Jul 18 '13 at 9:26
@Raystafarian Indeed the example values above has to be text values. Numbers can't be displayed with leading zeros. And since they are just text values, you can also use =A1+B1 – nixda Jul 18 '13 at 9:32
@nixda right, or =A1&B1 – Raystafarian Jul 18 '13 at 9:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.