Remove Leading Zeros in Excel

If you just need to remove leading zeros in excel and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: use =VALUE(A2) to convert numeric text such as "00123" to the number 123; if zeros come only from a custom number format, change that format to General.

On this page7
▤Annotated stepsExcel
1

Check whether the source is numeric text or a number with a zero-padding custom format; preserve the original column.

2

For numeric text, enter =VALUE(A2) in a new column and fill down.

3

Check representative results, invalid text and identifiers whose leading zeros must be retained.

4

For display-only padding, select the numeric cells and choose General rather than converting them.

5

Copy and Paste Special > Values over the original only after verification and only when numeric conversion is intended.

=VALUE(A2)
Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

Leading zeros can be literal text or display padding. VALUE converts number-like text to a number, so the text 00123 becomes 123. A custom format such as 00000 instead displays a stored number 123 as 00123; changing to General removes that display padding without changing the value. These are different inputs. Keep identifiers as text when their width matters, and keep a source copy before conversion. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. For “remove leading zeros in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a workspace setting that makes a big sheet comfortable to navigate useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

A2 contains the text 00123 and A3 contains 00120. =VALUE(A2) returns numeric 123 and =VALUE(A3) returns 120; the final zero in 120 remains. If A4 contains 00A12, =VALUE(A4) returns #VALUE! because it is not numeric text. A numeric 123 formatted as 00000 displays 00123; General displays 123. Check the formula bar and original identifier before replacing any source. Numeric imports may need numeric conversion for calculations, while identifiers need their original characters. Establish that distinction before removing leading zeros. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “remove leading zeros in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Applying a padding format or TEXT(...,"00000") when the task is to remove zeros.
  • Converting account numbers, postal codes or other identifiers whose exact text matters.
  • Replacing the source before checking nonnumeric text and long identifiers.

Frequently asked questions

Does VALUE remove zeros inside or at the end of a number?

No. Numeric text 00120 becomes 120; internal and meaningful trailing digits remain.

Why does VALUE return #VALUE!?

The text is not a number, date or time format Excel recognizes. Do not silently replace the error with zero; inspect the input.

Can General formatting remove zeros from text?

No. General changes numeric display padding, not the stored characters of a text identifier.

Other ways people ask this

People reach this page typing “how to remove leading zeros in excel”, “excel removing leading zeros”, “how to remove a leading zero in excel” and “how do you remove leading zeros in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.

Why do people search for this in so many different ways?

Because the same task has many names. “how to remove leading zeros in excel”, “excel removing leading zeros”, “how to remove a leading zero in excel” all point at the one operation explained on this page, which is why they all lead here.