A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Converting string to number



 
 
Thread Tools Display Modes
  #1  
Old March 5th, 2010, 01:48 PM posted to microsoft.public.excel.newusers
kenppy
external usenet poster
 
Posts: 7
Default Converting string to number

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
  #2  
Old March 5th, 2010, 03:36 PM posted to microsoft.public.excel.newusers
Russell Dawson[_2_]
external usenet poster
 
Posts: 173
Default Converting string to number

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

Will return your data as required as long as the text to be stripped is
constant
--
Russell Dawson
Excel Student

Please hit "Yes" if this post was helpful.


"kenppy" wrote:

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
.

  #3  
Old March 5th, 2010, 03:39 PM posted to microsoft.public.excel.newusers
Russell Dawson[_2_]
external usenet poster
 
Posts: 173
Default Converting string to number

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.
--
Russell Dawson
Excel Student

Please hit "Yes" if this post was helpful.


"kenppy" wrote:

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
.

  #4  
Old March 5th, 2010, 03:49 PM posted to microsoft.public.excel.newusers
kenppy
external usenet poster
 
Posts: 7
Default Converting string to number


This works but is still a string, how do I turn this to number?
thanks
says...
=LEFT(A1, LEN(A1)-5)

Will return your data as required as long as the text to be stripped is
constant

  #5  
Old March 5th, 2010, 03:55 PM posted to microsoft.public.excel.newusers
kenppy
external usenet poster
 
Posts: 7
Default Converting string to number

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

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.

  #6  
Old March 5th, 2010, 04:25 PM posted to microsoft.public.excel.newusers
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default Converting string to number


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


--

HTH

Bob

"kenppy" wrote in message
om...

This works but is still a string, how do I turn this to number?
thanks
says...
=LEFT(A1, LEN(A1)-5)

Will return your data as required as long as the text to be stripped is
constant



  #7  
Old March 5th, 2010, 04:26 PM posted to microsoft.public.excel.newusers
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Converting string to number

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

--
Best Regards,

Luke M
"kenppy" wrote in message
om...

This works but is still a string, how do I turn this to number?
thanks
says...
=LEFT(A1, LEN(A1)-5)

Will return your data as required as long as the text to be stripped is
constant



  #8  
Old March 5th, 2010, 04:27 PM posted to microsoft.public.excel.newusers
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Converting string to number

Under Data - Text to Columns, choose delimited. Then choose space as your
delimiter.

--
Best Regards,

Luke M
"kenppy" wrote in message
om...
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

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.



  #9  
Old March 5th, 2010, 04:35 PM posted to microsoft.public.excel.newusers
Russell Dawson[_2_]
external usenet poster
 
Posts: 173
Default Converting string to number

Sorry try
=LEFT(A1, LEN(A1)-6)
--
Russell Dawson
Excel Student

Please hit "Yes" if this post was helpful.


"kenppy" wrote:


This works but is still a string, how do I turn this to number?
thanks
says...
=LEFT(A1, LEN(A1)-5)

Will return your data as required as long as the text to be stripped is
constant

.

  #10  
Old March 5th, 2010, 07:18 PM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default Converting string to number

Thanks all of you, it's working now

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

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:45 PM.


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