Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

https://www.icts.uiowa.edu/confluence/display/REDCapDocs/Preserving+Prefixed+Zeros+in+Excel 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.

Example:
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

1 Answer 1

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:

=CONCATENATE(TEXT(A1,"000000"),TEXT(B1,"000000"))

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

 
discard

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.