Formatting Issues

Display Two Leading Zeros in WPS Spreadsheet Numbers

Muhammad TalhaMuhammad Talha Nov 12, 2026 868 views

Question details

Display numeric values with two leading zeros without changing the underlying values to text.

Display Two Leading Zeros in WPS Spreadsheet Numbers
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the target cells

In WPS Spreadsheet, select the cells or column containing the numeric values you want to format.

2
Open Format Cells

Right-click the selection and choose Format Cells, or press Ctrl+1 to open the Format Cells dialog.

3
Choose the Custom category

On the Number tab, select Custom from the Category list.

4
Enter the leading-zero format

In the Type box, enter 00000, then click OK. A value such as 971 will display as 00971.

Apply a five-digit custom number format
Numbers remain numeric: The format 00000 affects display only. Formulas and numeric sorting continue to use the original value, 971.

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. 1. Open the spreadsheet: Open your workbook in WPS Spreadsheet and select the cells that require leading zeros.
  2. 2. Access cell formatting: Right-click the selected cells and choose Format Cells.
  3. 3. Set a custom number format: Select Custom under the Number tab and type 00000 in the Type field.
  4. 4. Confirm the display: Click OK and verify that 971 displays as 00971 while the formula bar still shows 971.
Keeps identifiers and values numeric while showing leading zerosUse custom formats such as 00000 for fixed five-digit displaysCompatible with Microsoft Excel .xlsx and .xls spreadsheetsProvides familiar number-formatting tools for quick spreadsheet edits
microsoft office alternative - wps office

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.