» Combining Numbers that Have Leading Zeros
CATEGORY - Excel Text Formulas
VERSION - All Microsoft Excel Versions
Problem:Column A (List1) is formatted to display a leading zero before each number. That is, "1" is displayed as "01", "2" as "02", and so on.
The following formula was created to concatenate the numbers from List1 into one string:
=A2&A3&A4&A5
However, an incorrect result of "1234" is returned.
How can we modify the formula to honor the leading zeros?
Solution:
Use the TEXT function as shown in the following formula:
=TEXT(A2,"00")&TEXT(A3,"00")&TEXT(A4,"00")&TEXT(A5,"00")
Book Store:
Recommended Books:
- Mastering Excel 2000 (for beginner)
- Absolute Beginner's Guide to Microsoft Excel 2002
- How to Pay Zero Taxes (Annual)
- Windows XP Pocket Reference
- The 22 Immutable Laws of Marketing : Exposed and Explained by the World's Two
- Financial Statements: A Step-By-Step Guide to Understanding and Creating Financial Reports
No comments have been submitted.

