Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default convert a text string to a number

Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number

thanks
kevin

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default convert a text string to a number

Hi,

Easiest way: enter a single 1 in any cell. Copy it (ctrl+c). Select the
range, you want converted. Select edit/paste special. Check values under
paste and multiply under operation. Click OK.

/Sune

"kevcar40" wrote:

Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number

thanks
kevin


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default convert a text string to a number

I would say the easiest way would be to use datatext to columns, then click
finish

--
Regards,

Peo Sjoblom



"Sune Fibaek" wrote in message
...
Hi,

Easiest way: enter a single 1 in any cell. Copy it (ctrl+c). Select the
range, you want converted. Select edit/paste special. Check values under
paste and multiply under operation. Click OK.

/Sune

"kevcar40" wrote:

Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number

thanks
kevin




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default convert a text string to a number

Yes, one might argue that :)

(Okay, you'r right. But the other method isn't all that difficult either.)

/Sune

"Peo Sjoblom" wrote:

I would say the easiest way would be to use datatext to columns, then click
finish

--
Regards,

Peo Sjoblom



"Sune Fibaek" wrote in message
...
Hi,

Easiest way: enter a single 1 in any cell. Copy it (ctrl+c). Select the
range, you want converted. Select edit/paste special. Check values under
paste and multiply under operation. Click OK.

/Sune

"kevcar40" wrote:

Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number

thanks
kevin





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default convert a text string to a number

On 3 Jul, 16:36, Sune Fibaek
wrote:
Yes, one might argue that :)

(Okay, you'r right. But the other method isn't all that difficult either.)

/Sune



"Peo Sjoblom" wrote:
I would say the easiest way would be to use datatext to columns, then click
finish


--
Regards,


Peo Sjoblom


"Sune Fibaek" wrote in message
...
Hi,


Easiest way: enter a single 1 in any cell. Copy it (ctrl+c). Select the
range, you want converted. Select edit/paste special. Check values under
paste and multiply under operation. Click OK.


/Sune


"kevcar40" wrote:


Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number


thanks
kevin- Hide quoted text -


- Show quoted text -


THanks both
this does not remove the leading blank space



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default convert a text string to a number

Perhaps it isn't a space (character 32) but rather a non-breaking
space (character 160), especially if you have copied the data from an
HTML source (web-site). You could try this formula in an adjacent
cell:

=RIGHT(A1,LEN(A1)-1)*1

Then copy the formula down for as many values as you have in column A.
You can then fix the values by highlighting all the cells with the
formula in, click <copy then Edit | Paste Special | Values (check) |
OK then <Esc or <Enter. Then you can delete the original column.

Hope this helps.

Pete

On Jul 4, 10:29 am, kevcar40 wrote:
On 3 Jul, 16:36, Sune Fibaek
wrote:





Yes, one might argue that :)


(Okay, you'r right. But the other method isn't all that difficult either.)


/Sune


"Peo Sjoblom" wrote:
I would say the easiest way would be to use datatext to columns, then click
finish


--
Regards,


Peo Sjoblom


"Sune Fibaek" wrote in message
...
Hi,


Easiest way: enter a single 1 in any cell. Copy it (ctrl+c). Select the
range, you want converted. Select edit/paste special. Check values under
paste and multiply under operation. Click OK.


/Sune


"kevcar40" wrote:


Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number


thanks
kevin- Hide quoted text -


- Show quoted text -


THanks both
this does not remove the leading blank space- Hide quoted text -

- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default convert a text string to a number

On 4 Jul, 11:43, Pete_UK wrote:
Perhaps it isn't a space (character 32) but rather a non-breaking
space (character 160), especially if you have copied the data from an
HTML source (web-site). You could try this formula in an adjacent
cell:

=RIGHT(A1,LEN(A1)-1)*1

Then copy the formula down for as many values as you have in column A.
You can then fix the values by highlighting all the cells with the
formula in, click <copy then Edit | Paste Special | Values (check) |
OK then <Esc or <Enter. Then you can delete the original column.

Hope this helps.

Pete

On Jul 4, 10:29 am, kevcar40 wrote:



On 3 Jul, 16:36, Sune Fibaek
wrote:


Yes, one might argue that :)


(Okay, you'r right. But the other method isn't all that difficult either.)


/Sune


"Peo Sjoblom" wrote:
I would say the easiest way would be to use datatext to columns, then click
finish


--
Regards,


Peo Sjoblom


"Sune Fibaek" wrote in message
...
Hi,


Easiest way: enter a single 1 in any cell. Copy it (ctrl+c). Select the
range, you want converted. Select edit/paste special. Check values under
paste and multiply under operation. Click OK.


/Sune


"kevcar40" wrote:


Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number


thanks
kevin- Hide quoted text -


- Show quoted text -


THanks both
this does not remove the leading blank space- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -

Worked a treat

thank you

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default convert a text string to a number

You're welcome - thanks for feeding back.

Pete

On Jul 4, 11:49 am, kevcar40 wrote:
On 4 Jul, 11:43, Pete_UK wrote:



Perhaps it isn't a space (character 32) but rather a non-breaking
space (character 160), especially if you have copied the data from an
HTML source (web-site). You could try this formula in an adjacent
cell:


=RIGHT(A1,LEN(A1)-1)*1


Then copy the formula down for as many values as you have in column A.
You can then fix the values by highlighting all the cells with the
formula in, click <copy then Edit | Paste Special | Values (check) |
OK then <Esc or <Enter. Then you can delete the original column.


Hope this helps.


Pete


On Jul 4, 10:29 am, kevcar40 wrote:


On 3 Jul, 16:36, Sune Fibaek
wrote:


Yes, one might argue that :)


(Okay, you'r right. But the other method isn't all that difficult either.)


/Sune


"Peo Sjoblom" wrote:
I would say the easiest way would be to use datatext to columns, then click
finish


--
Regards,


Peo Sjoblom


"Sune Fibaek" wrote in message
...
Hi,


Easiest way: enter a single 1 in any cell. Copy it (ctrl+c). Select the
range, you want converted. Select edit/paste special. Check values under
paste and multiply under operation. Click OK.


/Sune


"kevcar40" wrote:


Hi
i have a column of data in the form of a string
ie 123 i want to convert this to a number
the problem is that the sting has a space at the beginning
How do i remove the space and convert this string to a number


thanks
kevin- Hide quoted text -


- Show quoted text -


THanks both
this does not remove the leading blank space- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


Worked a treat

thank you- Hide quoted text -

- Show quoted text -



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert text string to a number code ramon Excel Discussion (Misc queries) 5 April 11th 07 05:02 PM
Convert a number to a name string Numbers to name string Excel Worksheet Functions 2 June 23rd 06 04:52 PM
Splitting a text string into string and number mcambrose Excel Discussion (Misc queries) 4 February 21st 06 03:47 PM
How to COnvert text string to number timtak Excel Discussion (Misc queries) 3 June 4th 05 04:57 AM
convert string to number Christina Excel Worksheet Functions 3 November 16th 04 02:36 PM


All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"