#1   Report Post  
aswin
 
Posts: n/a
Default text and numbers

hi your reply, =--TRIM(SUBSTITUTE(A1,CHAR(160),"")) was very useful. But how
can that be used to convert a range of cells?

"Ron Rosenfeld" wrote:

On Thu, 28 Oct 2004 06:35:08 -0700, "Sanford Lefkowitz"
wrote:

I was given a spreadsheet having a bunch of entries that appear to be
numbers, but when I try to do arithemetic with them, I get a #VALUE error.
I tried using the VALUE function to convert them to numbers, but the result
of this function is also a #VALUE error. Tracing the error shows it is trying
to evaluate
VALUE(" 1,291").
I tried using the TRIM function to remove leading blanks, but that did not
work.
I used the CODE function to find out what the characters were and find the
leading characters have a CODE value of 160 (a space I think should be 32).

How do I convert these characters to numbers?

Thanks
Sanford


That is a spacing character frequently used in HTML web pages.

This formula will convert it to a real number:

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




--ron

  #2   Report Post  
aswin
 
Posts: n/a
Default

got the answer, just select the required cells and do a fill.

"aswin" wrote:

hi your reply, =--TRIM(SUBSTITUTE(A1,CHAR(160),"")) was very useful. But how
can that be used to convert a range of cells?

"Ron Rosenfeld" wrote:

On Thu, 28 Oct 2004 06:35:08 -0700, "Sanford Lefkowitz"
wrote:

I was given a spreadsheet having a bunch of entries that appear to be
numbers, but when I try to do arithemetic with them, I get a #VALUE error.
I tried using the VALUE function to convert them to numbers, but the result
of this function is also a #VALUE error. Tracing the error shows it is trying
to evaluate
VALUE(" 1,291").
I tried using the TRIM function to remove leading blanks, but that did not
work.
I used the CODE function to find out what the characters were and find the
leading characters have a CODE value of 160 (a space I think should be 32).

How do I convert these characters to numbers?

Thanks
Sanford


That is a spacing character frequently used in HTML web pages.

This formula will convert it to a real number:

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




--ron

  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Select the range of cells in question.

Goto EditReplace
In the Find What box enter this code:

While holding down the ALT key, use the *numeric keypad* and type 0160

Using the QWERTY number keys won't work, you MUST use the numeric keypad

In the Replace With box: leave this empty, don't enter anything

Click Replace All

Biff

"aswin" wrote in message
...
hi your reply, =--TRIM(SUBSTITUTE(A1,CHAR(160),"")) was very useful. But
how
can that be used to convert a range of cells?

"Ron Rosenfeld" wrote:

On Thu, 28 Oct 2004 06:35:08 -0700, "Sanford Lefkowitz"
wrote:

I was given a spreadsheet having a bunch of entries that appear to be
numbers, but when I try to do arithemetic with them, I get a #VALUE
error.
I tried using the VALUE function to convert them to numbers, but the
result
of this function is also a #VALUE error. Tracing the error shows it is
trying
to evaluate
VALUE(" 1,291").
I tried using the TRIM function to remove leading blanks, but that did
not
work.
I used the CODE function to find out what the characters were and find
the
leading characters have a CODE value of 160 (a space I think should be
32).

How do I convert these characters to numbers?

Thanks
Sanford


That is a spacing character frequently used in HTML web pages.

This formula will convert it to a real number:

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




--ron



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
Converting numbers formatted as text to numbers Bill Excel Discussion (Misc queries) 1 July 19th 05 07:10 PM
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 09:51 PM
Converting Numbers to Text properly Shirley Munro Excel Discussion (Misc queries) 1 February 16th 05 03:01 PM
Sorting when some numbers have a text suffix confused on the tundra Excel Discussion (Misc queries) 5 December 18th 04 10:19 PM
I enter numbers and they are stored as text burkeville Excel Discussion (Misc queries) 5 December 3rd 04 01:59 AM


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