Skip to main content

Posts

Showing posts with the label leading zeros

[Excel] How to add zero before a number in Excel

Use Apostrophe The easiest way to add zeros in front of numbers in Excel is to add apostrophe (‘) before zeros. This automatically converts numbers into texts so you will see a  green triangle at the top-left corner of the cell indicating an error. Click “Ignore error” to proceed. Text Formatting You can simply change the number format to text to keep the leading zeros in numbers. To do this, follow the instructions below: 1. Right-click on the cell(s) where you want to add the leading zeros. 2. Select Format cells .                                  3. The Format Cells dialog box will appear. Select Text from the category options. 4. Click OK .                                  Custom Formatting If you don't want the data to appear as text and you want to keep the number value, yo...