How to zero fill a number inside of an Excel cell

calendar_today Asked Mar 12, 2009
thumb_up 25 upvotes
history Updated April 16, 2026

Question posted 2009 · +10 upvotes

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).

Accepted answer +25 upvotes

=TEXT(A1,”0000000000″)

Top excel Q&A (6)

+25 upvotes ranks this answer #20 out of 167 excel solutions on this site — top 12%.