Why does not Excel 2003 Replace comand romove spaces from cell contents?

D

Dmitry

Hello
Why does not Excel 2003 Replace command remove spaces from cell contents? Is
there any other way than the trim function to remove spaces after numbers in
cells?
 
P

Pete_UK

Replace should remove spaces - highlight your cells then CTRL-H. In the
"Find What" panel enter a single space, in the "Replace With" panel
leave this empty, then click Replace All and your spaces should have
gone.

If you have spaces after a number in a cell (and therefore the cell
contains text), you can convert it to a number in another cell by means
of:

=VALUE(A1)

and copy this down if necessary.

Hope this helps.

Pete
 
R

Ron Rosenfeld

Hello
Why does not Excel 2003 Replace command remove spaces from cell contents? Is
there any other way than the trim function to remove spaces after numbers in
cells?

I'll guess from the incomplete information you've posted, that you've imported
your numbers from an HTML source (i.e. the web) and what you think is a <space>
is really a <non-break-space>

That being the case, in the Find box of the Replace command, try entering the
nbsp code -- hold down <alt> and, from the numeric keypad, type 0160; then
release the <alt> button. Leave the Replace box blank.


--ron
 
D

Dmitry

Thanks Pete!
The Replace does not remove a space after a number in a cell. The cells are
in the text format.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Remove Spaces 1
Edit Replace command 8
Issue with blanks and spaces 56
Delete hidden spaces in cells 2
comparing cells - how? 6
Removal of 100's of spacing in numbers 4
For Claus From OP: 1
Cell margins ? 3

Top