FormulaCraft

How to remove leading zeros in Excel and Google Sheets

Topic:Text manipulation
Excel & Google Sheets
=VALUE(A2)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1If the number is stored as text, enter =VALUE(A2) in an adjacent cell to convert it to a number — this drops all leading zeros automatically.
  2. 2Alternatively, multiply by 1: =A2*1 or add zero: =A2+0 — both force numeric conversion.
  3. 3To remove leading zeros directly in the original cell, select the cells, go to Format > Cells > Number and choose the Number category.
  4. 4For a text result without leading zeros (not a number), use =TEXT(VALUE(A2),"0") which converts back to text without zeros.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

I need to keep leading zeros for display (like zip codes) — how do I prevent Excel from removing them?

Format the column as Text before entering data, or prefix the entry with an apostrophe to force text storage.

Does VALUE work on dates stored as text?

It returns the date serial number; wrap in DATEVALUE for dates formatted as text strings like "2024-01-15".

More on Text manipulation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: