Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default convert web copied text to numbers

I copied a website and pasted into excel. I need a formula to convert the
text to numbers.
Here are some examples, they contain leading 0"s, trailing 0's, "$" "," and
"."
$9,405.98
$9,457.19

$14,420.92
$5,077.31

Thanks for any help
--
Jim C
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 373
Default convert web copied text to numbers

If the text is in A1, then put this in B1:
=VALUE(A1)

"Jim C" wrote in message
...
I copied a website and pasted into excel. I need a formula to convert the
text to numbers.
Here are some examples, they contain leading 0"s, trailing 0's, "$" ","
and
"."
$9,405.98
$9,457.19

$14,420.92
$5,077.31

Thanks for any help
--
Jim C



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default convert web copied text to numbers

If he copied from the web I suspect he might have invisible html characters
(CHAR(160)
Then VALUE won't work, I would use Dave McRitchie's trimall macro found here

http://www.mvps.org/dmcritchie/excel/join.htm#trimall


will remove all extra characters including CHAR(160)

using a formula this might work


=--TRIM(SUBSTITUTE(A1,CHAR(160),""))


--
Regards,

Peo Sjoblom




"Zone" wrote in message
...
If the text is in A1, then put this in B1:
=VALUE(A1)

"Jim C" wrote in message
...
I copied a website and pasted into excel. I need a formula to convert
the
text to numbers.
Here are some examples, they contain leading 0"s, trailing 0's, "$" ","
and
"."
$9,405.98
$9,457.19

$14,420.92
$5,077.31

Thanks for any help
--
Jim C





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default convert web copied text to numbers

The formula worked great: =--TRIM(SUBSTITUTE(A1,CHAR(160),""))
Thank you.
--
Jim C


"Peo Sjoblom" wrote:

If he copied from the web I suspect he might have invisible html characters
(CHAR(160)
Then VALUE won't work, I would use Dave McRitchie's trimall macro found here

http://www.mvps.org/dmcritchie/excel/join.htm#trimall


will remove all extra characters including CHAR(160)

using a formula this might work


=--TRIM(SUBSTITUTE(A1,CHAR(160),""))


--
Regards,

Peo Sjoblom




"Zone" wrote in message
...
If the text is in A1, then put this in B1:
=VALUE(A1)

"Jim C" wrote in message
...
I copied a website and pasted into excel. I need a formula to convert
the
text to numbers.
Here are some examples, they contain leading 0"s, trailing 0's, "$" ","
and
"."
$9,405.98
$9,457.19

$14,420.92
$5,077.31

Thanks for any help
--
Jim C






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
how to remove symbols ahead of text and numbers copied from web Dan B Excel Worksheet Functions 8 February 9th 07 02:49 AM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 08:04 PM
how do I convert copied Text numbers into values in Excel? MOE Excel Worksheet Functions 1 June 14th 05 06:03 AM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 07:39 AM
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 09:51 PM


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

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

About Us

"It's about Microsoft Excel"