How to zero fill a number inside of an Excel cell

Gerhard Weiss picture Gerhard Weiss · Mar 12, 2009 · Viewed 65.4k times · Source

How do you zero fill a number to 10 positions inside an excel spreadsheet?

i.e. If cell A1 has 1234 how can cell A2 display 0000001234 (10 postions).

Answer

NakedBrunch picture NakedBrunch · Mar 12, 2009

=TEXT(A1,"0000000000")