PC Review


Reply
Thread Tools Rate Thread

Converting string to number

 
 
kenppy
Guest
Posts: n/a
 
      5th Mar 2010
hi,

I have a set of data that is to be cut and pasted from an external
source.
A typical cell reads '32813.58 sq mm', without the speech marks.
The cell could be formatted before the pasting; but how do I strip off
the units to leave the number only? The number could be any size.

thanks
 
Reply With Quote
 
 
 
 
kenppy
Guest
Posts: n/a
 
      5th Mar 2010

This works but is still a string, how do I turn this to number?
thanks
(E-Mail Removed) says...
> =LEFT(A1, LEN(A1)-5)
>
> Will return your data as required as long as the text to be stripped is
> constant
>

 
Reply With Quote
 
kenppy
Guest
Posts: n/a
 
      5th Mar 2010
The data is already loading into columns but the length of the stuff to
strip may not be predicted, how would this be treated?
thanks

(E-Mail Removed) says...
> Another alternative if you are pasting text into Excel is to use the text to
> columns facility.
>
> You'll find this under data - text to columns. Ask again if you need more
> help on this.
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      5th Mar 2010

=--LEFT(A1, LEN(A1)-5)


--

HTH

Bob

"kenppy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> This works but is still a string, how do I turn this to number?
> thanks
> (E-Mail Removed) says...
>> =LEFT(A1, LEN(A1)-5)
>>
>> Will return your data as required as long as the text to be stripped is
>> constant
>>



 
Reply With Quote
 
Luke M
Guest
Posts: n/a
 
      5th Mar 2010
=VALUE(LEFT(A1, LEN(A1)-5))

--
Best Regards,

Luke M
"kenppy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> This works but is still a string, how do I turn this to number?
> thanks
> (E-Mail Removed) says...
>> =LEFT(A1, LEN(A1)-5)
>>
>> Will return your data as required as long as the text to be stripped is
>> constant
>>



 
Reply With Quote
 
Luke M
Guest
Posts: n/a
 
      5th Mar 2010
Under Data - Text to Columns, choose delimited. Then choose space as your
delimiter.

--
Best Regards,

Luke M
"kenppy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The data is already loading into columns but the length of the stuff to
> strip may not be predicted, how would this be treated?
> thanks
>
> (E-Mail Removed) says...
>> Another alternative if you are pasting text into Excel is to use the text
>> to
>> columns facility.
>>
>> You'll find this under data - text to columns. Ask again if you need
>> more
>> help on this.
>>



 
Reply With Quote
 
Guest
Posts: n/a
 
      5th Mar 2010
Thanks all of you, it's working now

> Sorry try
> =LEFT(A1, LEN(A1)-6)
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Converting a string into a number format Gary''s Student Microsoft Excel Misc 0 17th Apr 2008 10:18 AM
converting number string to number with decimal =?Utf-8?B?cm9ydGl6?= Microsoft Excel Worksheet Functions 2 15th Sep 2005 08:34 PM
Converting date value from number to string =?Utf-8?B?QW5kcmV3IFdpbGtpbnM=?= Microsoft Access Queries 2 23rd Aug 2004 11:51 AM
converting number to string Microsoft Excel Programming 5 23rd Jan 2004 07:38 PM
Converting a number to a string Joakim Microsoft Excel Worksheet Functions 13 11th Aug 2003 09:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:41 AM.