| Summary: | Crazy behaviour when pasting percentage numbers from text files | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | leprechaun |
| Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | 3.5.7.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
leprechaun
2016-01-19 19:48:38 UTC
That means that before or while pasting 13% the cell was formatted as Text, effectively forcing the content to type text instead of number (and the content probably being left aligned). Formatting the cell to some number type does not change the content, but then the leading ' indicates that the content *could* be interpreted as a number. The ' is not part of the cell content, hence searching for it is not possible, but once the cells are formatted as number the content can be converted from text to number by selecting the cells and then use Find&Replace: Search For: ^.+ Replace With: $0 Under Options activate * Current selection only * Regular expressions and then hit Replace All. Another possibility is to install this useful extension: http://extensions.libreoffice.org/extension-center/ct2n-convert-text-to-number-and-dates I don't remember how 3.5 (which btw is rather old) handled pasting text, but in a more recent 4.4.7 or 5.0.4 pasting 13% text yields a numeric value and not text. Thank you very much. I could test this behaviour in a different system, running the last Mint LMDE, with Libreoffice version 3.7 ... Pasting a 13% will bring to a numeric cell formatted as a percentage, no problems at all. In my 3.5.7.2 nevertheless none of yours two suggestions works. Find-replace using regular expression doesn't remove the ' (it is apparently a "virtual" sign, not text), nor the extension you suggested. I tried these solutions by my own from the beginning, but no avail. I have to upgrade my ubuntu 12.04 OS, because this means it is obsolete. Regards |