Table of Contents
🔹 Method 1: Using an Apostrophe
Type '000123
→ Excel treats it as text and displays the leading zeros.
🔹 Method 2: Format as Text
- Select the cells
- Right-click → Format Cells → Choose Text
- Now enter numbers with zeros (e.g.,
00123
), and they will stay.
🔹 Method 3: Use a Formula
Use TEXT
function to add zeros:
=TEXT(A2, "000000")
👉 If A2 = 123
, result = 000123
🔹 Method 4: Custom Number Formatting
- Select the cells
- Right-click → Format Cells → Number tab → Custom
- Type
000000
(for 6-digit numbers)
👉 Enter123
, Excel shows000123
✅ Perfect for Employee IDs, Barcodes, ZIP codes, and more!