Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Yes, that's a solution, thank you Sndl :-)

In this case, the values are;
------------------------------------------
A1(text) : "1.2               "
A2(text) : "2.5               "
B1(number) : =SUM(A1:A2)      (it shows 0 now, it can't calculate..)
------------------------------------------

The operation is (as Sndl described)
------------------------------------------
1. Choose Column A
2. Chose Data-> Text to Columns from the top menu

In the wizard form;
3. Select the Column
4. Select "US English" from the Column type Combo
5. Click OK
------------------------------------------

B1 now shows the sum of the values (3.7 in this case)

Data type of A1 and A2 are still text, but that's not important for me when the functions are working :)








On 07.12.2010 16:04, Sndl wrote:
Le 07/12/2010 09:31, Arda Tunccekic a écrit :
Hi ,

I have an auto generated xls file, and I have a column in it, which is
defined as text.

I have numbers in that column, with trailing spaces which look like ;
"1.2 "
"12.9 "
"3.4 "

When I right click to the column, choose "Format Cells" and "Number", it
doesn't convert. I can't use the values in any formula. How can I
convert them to numbers? Is there a "quick convert" feature?

Excel can use those values in formulas, even if I don't convert and with
trailing spaces..

Thank you

Imho the easiest way to convert text to numbers or numbers to text is to use Data -> Text to Columns.

You select you column (click the column header)
In menu Data -> Text to Columns
At the bottom of the wizard window, you select your column and change type to "Us English" .... And that's all folks !

Usually, this function is used to split one column to many ... but with only one colum it's really useful to make "inplace" type conversion



--
Unsubscribe instructions: E-mail to users+help@libreoffice.org
List archive: http://www.libreoffice.org/lists/users/
*** All posts to this list are publicly archived for eternity ***

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.