New: ready-to-use spreadsheet templatesExplore the collection  →
Google Sheets · Verified tutorial

Leading zeros disappearing in Google Sheets

Format A2:A4 with the custom number format 00000 so every code displays exactly five digits while remaining numeric.

Verified by JosephineAbout 75 seconds
Quick answer

Format A2:A4 with the custom number format 00000 so every code displays exactly five digits while remaining numeric.

Step-by-step

1

Open the practice sheetUse the example data shown below so the result is easy to check.

2

Leading zeros disappearingFormat A2:A4 with the custom number format 00000 so every code displays exactly five digits while remaining numeric.

3

Check the resultCompare the finished sheet with the expected result and correct the target range if needed.

Shortcut or faster method

Use the menu path shown in the video and keep the target range selected until the change is applied.

Expected result

A2:A4 uses the five-digit leading-zero number format.

Common mistake

Applying the change to more rows, columns, or cells than the task specifies.

Troubleshooting

Re-select A2:A4 and repeat the final action. A2:A4 uses the five-digit leading-zero number format.

Example spreadsheet data

This is the clean fixture used for the verified run.

Code
12
345
7

Video transcript

  1. Open the prepared Code repair spreadsheet.
  2. Open the practice sheet. Use the example data shown below so the result is easy to check.
  3. Leading zeros disappearing. Format A2:A4 with the custom number format 00000 so every code displays exactly five digits while remaining numeric.
  4. Check the result. Compare the finished sheet with the expected result and correct the target range if needed.
  5. A2:A4 uses the five-digit leading-zero number format.