Entering a Number with Leading Zeros

2 replies [Last post]
aktiva
Offline
Last seen: 2 weeks 3 days ago
Title:
Joined: 13 May 2016
Posts: 1
OS Windows Libreoffice 5.1.3 – 64bit

When I use apostrophe to enter the number with leading zeroes, apostrophe appear in cell.
How to make him disappear.

myrkat
myrkat's picture
Offline
Last seen: 2 weeks 2 days ago
Title: ★★
Joined: 1 Aug 2013
Posts: 14
aktiva wrote:OS
aktiva wrote:
OS Windows Libreoffice 5.1.3 – 64bit

When I use apostrophe to enter the number with leading zeroes, apostrophe appear in cell.
How to make him disappear.


1) Make sure the cell is NOT formatted to “TEXT” (Control+1 or Format->Cells)
2) In the Format Cells box, select the “Numbers” tab (first tab), in the Category, it should be “Number” or whatever you need.
3) To get leading zeros, type in the entry box under “Format code” and use “00#” to have two leading zeros, or however many you need, and click OK.

Did that do it? It’s all in the “format code” of the user-defined number category you create.

-teh r0y
mark_t
Offline
Last seen: 8 hours 19 min ago
Title: ★★★★
Joined: 26 Apr 2016
Posts: 90
Alternate would be to make
Alternate would be to make sure the cell IS formatted to “TEXT”, but do not enter the apostrophe.

If you do this then when you want to use the number in a calculation you need to use VALUE ( A1 ), (if A1 is the cell reference).

LibreOffice 5.1.3.2, Windows 8.1

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.