Format Numbers as 10 Digits with Leading Zeros in Excel
Question details
Display numbers as 10-digit values with leading zeros.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user wants values such as 1, 26, and 136 to appear as 10-digit numbers in a spreadsheet.
- Observed behavior
- The desired display is 0000000001, 0000000026, and 0000000136 while retaining the underlying numeric values.
Identify the cells containing the numbers you want to format. This method is intended for numeric values; text entries may not respond to a number format.
Apply a 10-Digit Custom Number Format in Excel
Use a custom format to add leading zeros to the display without changing the stored numbers.
Select the cells or column containing the numbers you want to display with leading zeros.
Right-click the selection and choose Format Cells.
On the Number tab, select Custom, then enter 0000000000 in the Type field.
Click OK. For example, 26 will display as 0000000026 while its numeric value remains 26.

Add 10-Digit Leading Zeros in WPS Spreadsheet
Use a custom number format in WPS Spreadsheet to display numeric values with leading zeros while keeping them available for calculations.
- 1. Open your spreadsheet: Open WPS Spreadsheet and use File > Open to select your workbook.
- 2. Select the cells: Select the cells or column containing the numbers to format.
- 3. Set the custom format: Right-click the selection, choose Format Cells, and select Custom on the Number tab.
- 4. Apply the format: Enter 0000000000 in the Type field and click OK.

Frequently Asked Questions
Does the custom format change the actual number?
No. Entering 0000000000 under Format Cells > Custom changes how the number is displayed, not the underlying numeric value.
What happens if a number already has more than 10 digits?
The custom format does not remove digits. It displays at least 10 digits, so longer numbers remain longer.
Why did the leading zeros disappear from my CSV file?
CSV files store values without spreadsheet formatting. To retain the custom display format, save the workbook as an XLSX file using File > Save As.
Will this format add zeros to numbers stored as text?
Custom number formats generally apply to numeric values, not text. Convert the entries to numbers first if appropriate, then apply the format through Format Cells > Custom.




