
Suppose we have the number 12345 in cell B3. This way, we can convert the number into text without formatting. We can also add zeros in Excel by using the TEXT and REPT functions. Plain text format in Google sheets Using TEXT and REPT to add leading zeros Click Format tab > Number > Plain textįigure 4. In the same manner, we can keep leading zeros in Google sheets by entering the value in text format. In the example above, once we are done typing, a yellow diamond sign appears beside the cell bearing the warning message that the number is stored as text.

In order to keep leading zeros as we type them in a cell, we format the cell as text. Convert to number using the VALUE function.Format cell in Number or General format.There are also three methods to remove leading zeros : Convert to text using TEXT and REPT function.Format as text to keep zeros as we type.There are three methods to add leading zeros: Final result: Add or remove leading zeros

While working with Excel and Google sheets, we are able to add or remove leading zeros by changing the format, or by using functions such as TEXT, REPT or VALUE.įigure 1. In some cases, we might also need to add leading zeros to keep a certain specified format.
#QUICK SPREADSHEET TO TEXT TEMPLATE ZIP#
When handling special numbers or texts such as identification numbers, security numbers or zip codes, it is of vital importance that we keep the leading zeros to our data. Add or remove leading zeros in Excel and Google Sheets
