Formatting Issues

Format Numbers as 10 Digits with Leading Zeros in Excel

Jason MillerJason Miller Dec 2, 2026 869 views

Question details

Display numbers as 10-digit values with leading zeros.

Format Numbers as 10 Digits with Leading Zeros in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the numbers

Select the cells or column containing the numbers you want to display with leading zeros.

2
Open Format Cells

Right-click the selection and choose Format Cells.

3
Choose a custom format

On the Number tab, select Custom, then enter 0000000000 in the Type field.

4
Apply the format

Click OK. For example, 26 will display as 0000000026 while its numeric value remains 26.

Apply a 10-Digit Custom Number Format in Excel
Display format limitations: The format sets a minimum of 10 digits; it does not shorten longer numbers. Formatting is not preserved when saving to CSV.
Format numbers in WPS Spreadsheet

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. 1. Open your spreadsheet: Open WPS Spreadsheet and use File > Open to select your workbook.
  2. 2. Select the cells: Select the cells or column containing the numbers to format.
  3. 3. Set the custom format: Right-click the selection, choose Format Cells, and select Custom on the Number tab.
  4. 4. Apply the format: Enter 0000000000 in the Type field and click OK.
Display numbers with a minimum of 10 digitsKeep the underlying numeric values unchangedOpen and save Microsoft Excel XLSX filesFormat selected cells or an entire column at once
microsoft office alternative - wps office

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.