Applies To
Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web

To display leading zeros, like in a zip code, create a custom number format. For example: Use 00000 for a five digit fixed-length number, or 000# for a variable length number prefaced by three zeros. 

  1. Right-click in a cell and select Format Cells.

  2. On the Numbers tab, select Custom in the Category list.

  3. In the Type box, type the custom format.

  4. Select OK.

To blank zero fields in Excel, see Hide zeroes.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.