Page 1 of 1

[Solved] Change cells with forced text to numbers

Posted: Mon Mar 08, 2010 2:09 am
by DonaldFR
This seems obvious, but I cannot find the answer anywhere. Is there an easy way to globally change the contents of cells that are forced to text by an apostrophe ( 'string ) to numbers without the apostrophe that can be sorted ( string )?

Thanks!

-- Donald

Re: change cells with forced text to numbers

Posted: Mon Mar 08, 2010 2:31 am
by jrkrideau
DonaldFR wrote:This seems obvious, but I cannot find the answer anywhere. Is there an easy way to globally change the contents of cells that are forced to text by an apostrophe ( 'string ) to numbers without the apostrophe that can be sorted ( string )?

Thanks!

-- Donald
The easiest way is to use the VALUE() function to create a new column of numbers.

Re: change cells with forced text to numbers

Posted: Mon Mar 08, 2010 3:02 am
by DonaldFR
Thanks, but that doesn't help in my situation (I don't think!).

I've got a colum of British format dates ('DD/MM/YYYY) that I need to change to DD/MM/YYYY in a form that Calc would recognize as a date.

Any ideas?

Thanks!

-- Donald

Re: change cells with forced text to numbers

Posted: Mon Mar 08, 2010 3:14 am
by acknak
1) Select the cells you want to convert
2) Make sure the cells have any number format other than "Text" ("@").
3) Data > Text to Columns
3a) Separated by: Tab (any character not present in the column datsa is OK)
3b) Select the column in the preview and change the column type to Date: D/M/Y
4) Click OK

Re: change cells with forced text to numbers

Posted: Mon Mar 08, 2010 3:19 am
by wope
Hi Donald

=DATEVALUE(A1) and then you must format the cell to a dateformat.

wolfgang

Re: change cells with forced text to numbers

Posted: Mon Mar 08, 2010 5:53 am
by vasa1
Another possible route is here:

To get rid of ' before a number .... (seen when some Excel files are opened in Open Office):
Alt,E,F and in search type ".+" and replace with "&" and tick regular expressions.

Re: change cells with forced text to numbers

Posted: Mon Mar 08, 2010 6:31 am
by DonaldFR
I tried most of these options, and the one by acknak worked. Thank you all!

-- Donald