» Combining Numbers that Have Leading Zeros
CATEGORY - Excel Text Formulas
VERSION - All Microsoft Excel Versions
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:
- Windows XP Pocket Reference
- Microsoft PowerPoint Version 2002 Step by Step
- Rich Dad, Poor Dad: What the Rich Teach Their Kids About Money--That the Poor and Middle Class Do Not!
- Windows XP for Dummies
- Essentials of Investments with Standard & Poor's Educational Version of Market Insight + PowerWeb + Stock Trak Coupon
- The Total Money Makeover. : A Proven Plan for Financial Fitness


Thank you very much for letting me know about TEXT function. It was very helpful in solving one of main problem in displaying leading zeros using ASP in excel. Thanks again.
Cheers,
Ravee