PC Review


Reply
Thread Tools Rate Thread

convert text to numbers

 
 
Gary B
Guest
Posts: n/a
 
      6th Jan 2010
Have copied and pasted a column of numbers to an excel 2003 worksheet. When I
try to sum then I get a zero as the sum. Have tried to use the =Value(A1)
formula to read to the next col as a number but get the #VALUE! Error. Must
be an easy way to do this, any ideas?
 
Reply With Quote
 
 
 
 
Paul C
Guest
Posts: n/a
 
      6th Jan 2010
You may have some nonprintable characters try Value(Clean(A1))
--
If this helps, please remember to click yes.


"Gary B" wrote:

> Have copied and pasted a column of numbers to an excel 2003 worksheet. When I
> try to sum then I get a zero as the sum. Have tried to use the =Value(A1)
> formula to read to the next col as a number but get the #VALUE! Error. Must
> be an easy way to do this, any ideas?

 
Reply With Quote
 
Eduardo
Guest
Posts: n/a
 
      6th Jan 2010
Hi Gary,
maybe you have blank spaces that you cannot see enter in another column

=trim(A1)

then do copy of this column, go to A1 and paste special, values

"Gary B" wrote:

> Have copied and pasted a column of numbers to an excel 2003 worksheet. When I
> try to sum then I get a zero as the sum. Have tried to use the =Value(A1)
> formula to read to the next col as a number but get the #VALUE! Error. Must
> be an easy way to do this, any ideas?

 
Reply With Quote
 
מיכאל (מיקי) אבידן
Guest
Posts: n/a
 
      6th Jan 2010
Only if the two previous suggestions do not help you - try using User Defied
Function:
Press ALT+F11 and paste the following code into a Module(!)
To resolve the "pure" number from cell A1, type in cell B1: =StripNumber(A1)
-----------------------------------------------------
Function StripNumber(stdText As String)
stdText = Trim(stdText)
For C = 1 To Len(stdText)
If IsNumeric(Mid(stdText, C, 1)) Then strg = strg & Mid(stdText, C, 1)
Next
StripNumber = strg * 1
End Function
-------------------
Micky


"Gary B" wrote:

> Have copied and pasted a column of numbers to an excel 2003 worksheet. When I
> try to sum then I get a zero as the sum. Have tried to use the =Value(A1)
> formula to read to the next col as a number but get the #VALUE! Error. Must
> be an easy way to do this, any ideas?

 
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
Can I convert numbers stored as text back to numbers in MS Access CUserM Microsoft Access Queries 7 20th Jun 2008 08:12 PM
Convert numbers stored as text to numbers errors after loading data in jobs Microsoft Excel Programming 2 28th Mar 2007 02:57 AM
Convert numbers stored as text to numbers Excel 2000 =?Utf-8?B?RGFybGVuZQ==?= Microsoft Excel Misc 6 31st Jan 2006 08:04 PM
How do I convert numbers stored as text with spaces to numbers =?Utf-8?B?QmFmZnVvcg==?= Microsoft Excel Misc 1 24th May 2005 07:39 AM
How to convert Excel imported numbers from text to numbers? =?Utf-8?B?QWxkZW4=?= Microsoft Excel Misc 9 1st Apr 2005 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:19 AM.