BeginnerText Functions4 min10 points

Pad order numbers to five digits with TEXT

The situation

Harbor Supply's courier portal wants order references as five digits, so order 42 has to be sent as 00042. Excel drops leading zeros from numbers the moment you type them, and the team has been adding the zeros by hand on every export — and getting the count wrong on the longer numbers. The padding has to come from a formula.

A1
fx
Pad order numbers to five digits with TEXT — question sheet. Use the arrow keys to move between cells, Enter or F2 to edit, Escape to cancel, Control D to fill down from the cell above, and Control C and Control V to copy and paste.
Row numberABCDE
1Order noCourier reference
242.00
37.00
41183.00
59021.00
6

Functions in this exercise

  • TEXT — Formats a number as text using a format code, for padding, percentages and fixed decimals. Syntax and example

Who this is for