Display Two Leading Zeros in WPS Spreadsheet Numbers
Question details
Display numeric values with two leading zeros without changing the underlying values to text.

- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- The user needs a fixed five-digit display format for values such as 971.
- Observed behavior
- The value should remain numeric while displaying as 00971.
Decide how many total digits each value should display. For a five-digit result such as 00971, use five zero placeholders in the custom number format.
Apply a five-digit custom number format
Use this method when values must stay numeric for calculations, sorting, and formulas but need to display with leading zeros.
A custom number format changes only the cell display. It does not alter the stored numeric value, so 971 can appear as 00971 while still being used in calculations.
In WPS Spreadsheet, select the cells or column containing the numeric values you want to format.
Right-click the selection and choose Format Cells, or press Ctrl+1 to open the Format Cells dialog.
On the Number tab, select Custom from the Category list.
In the Type box, enter 00000, then click OK. A value such as 971 will display as 00971.

Format Numbers with Leading Zeros in WPS Spreadsheet
WPS Spreadsheet lets you apply a custom number format to show a consistent number of digits while preserving the original numeric data. Enter 00000 to display five-digit values, including 00971, without converting cells to text.
- 1. Open the spreadsheet: Open your workbook in WPS Spreadsheet and select the cells that require leading zeros.
- 2. Access cell formatting: Right-click the selected cells and choose Format Cells.
- 3. Set a custom number format: Select Custom under the Number tab and type 00000 in the Type field.
- 4. Confirm the display: Click OK and verify that 971 displays as 00971 while the formula bar still shows 971.

Frequently Asked Questions
How do I show 971 as 00971 without converting it to text?
Select the cell, open Format Cells with Ctrl+1, choose Custom, and enter 00000 in the Type field. The cell displays 00971, but its stored value remains 971.
Why should I use 00000 instead of typing zeros before the number?
Typing 00971 may cause the entry to be treated as text depending on how it is entered. The custom format 00000 preserves a numeric value and adds zeros only to its display.
Can I use a different number of leading zeros in WPS Spreadsheet?
Yes. Use one zero placeholder for every total digit you need. For example, use 0000 for four digits, 000000 for six digits, or 00000000 for eight digits.
Will formulas still work after I apply a leading-zero format?
Yes. Custom number formats do not change the underlying value, so formulas, numeric comparisons, and calculations continue to work normally.




