Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
babooz
 
Posts: n/a
Default converting text to numeric data

I have data that I am copying and pasting from a web site that I have to
import as text and then manually insert column widths so that it will not all
be placed in one column but into separate columns. My problem comes in
because I cannot now use the data in a formula. It will not compute because
it is in text format. I have tried the paste special multiply trick but
that doesn't work because there is a space prior to the number and that is
throwing off the equation. can anyone help me? Do I have to import as text?
If I do a copy & paste then the info goes into the cell A1 only and notthing
into the other cells.

--
trying to work this out
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default converting text to numeric data

Hi!

Here are some things to try:

Select the range of cells that contain the numbers.
Goto DataText to Columns
Select Fixed width
Click Next, Next, Finish

If the "spaces" were standard char 32 spaces this should remove them and
convert the values to numbers.

If the "spaces" are char 160 (html nbsp;) T to C won't work.

Select the range of numbers
Goto EditReplace
Find what: ALT 0160 (hold down the ALT key and using the numeric keypad type
0160)
Replace with: nothing, leave this empty
Replace All

Biff

"babooz" wrote in message
...
I have data that I am copying and pasting from a web site that I have to
import as text and then manually insert column widths so that it will not
all
be placed in one column but into separate columns. My problem comes in
because I cannot now use the data in a formula. It will not compute
because
it is in text format. I have tried the paste special multiply trick but
that doesn't work because there is a space prior to the number and that is
throwing off the equation. can anyone help me? Do I have to import as
text?
If I do a copy & paste then the info goes into the cell A1 only and
notthing
into the other cells.

--
trying to work this out



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default converting text to numeric data

P.S.

If you copy/paste from the web a lot (I do) I would highly recommend you use
this macro:

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

Attach it to a button and put it on one of your toolbars. This macro strips
out all extraneous char 32 spaces and char 160 nbsp spaces.

Biff

"Biff" wrote in message
...
Hi!

Here are some things to try:

Select the range of cells that contain the numbers.
Goto DataText to Columns
Select Fixed width
Click Next, Next, Finish

If the "spaces" were standard char 32 spaces this should remove them and
convert the values to numbers.

If the "spaces" are char 160 (html nbsp;) T to C won't work.

Select the range of numbers
Goto EditReplace
Find what: ALT 0160 (hold down the ALT key and using the numeric keypad
type 0160)
Replace with: nothing, leave this empty
Replace All

Biff

"babooz" wrote in message
...
I have data that I am copying and pasting from a web site that I have to
import as text and then manually insert column widths so that it will not
all
be placed in one column but into separate columns. My problem comes in
because I cannot now use the data in a formula. It will not compute
because
it is in text format. I have tried the paste special multiply trick
but
that doesn't work because there is a space prior to the number and that
is
throwing off the equation. can anyone help me? Do I have to import as
text?
If I do a copy & paste then the info goes into the cell A1 only and
notthing
into the other cells.

--
trying to work this out





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
babooz
 
Posts: n/a
Default converting text to numeric data

Thanks Biff you guys are so helpful.
--
trying to work this out


"Biff" wrote:

P.S.

If you copy/paste from the web a lot (I do) I would highly recommend you use
this macro:

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

Attach it to a button and put it on one of your toolbars. This macro strips
out all extraneous char 32 spaces and char 160 nbsp spaces.

Biff

"Biff" wrote in message
...
Hi!

Here are some things to try:

Select the range of cells that contain the numbers.
Goto DataText to Columns
Select Fixed width
Click Next, Next, Finish

If the "spaces" were standard char 32 spaces this should remove them and
convert the values to numbers.

If the "spaces" are char 160 (html nbsp;) T to C won't work.

Select the range of numbers
Goto EditReplace
Find what: ALT 0160 (hold down the ALT key and using the numeric keypad
type 0160)
Replace with: nothing, leave this empty
Replace All

Biff

"babooz" wrote in message
...
I have data that I am copying and pasting from a web site that I have to
import as text and then manually insert column widths so that it will not
all
be placed in one column but into separate columns. My problem comes in
because I cannot now use the data in a formula. It will not compute
because
it is in text format. I have tried the paste special multiply trick
but
that doesn't work because there is a space prior to the number and that
is
throwing off the equation. can anyone help me? Do I have to import as
text?
If I do a copy & paste then the info goes into the cell A1 only and
notthing
into the other cells.

--
trying to work this out






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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Search/Extract Data w/in Text File D.Parker Excel Discussion (Misc queries) 4 June 21st 05 07:33 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM


All times are GMT +1. The time now is 09:39 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"