![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
I import lists into Excel. Before formatting phone or fax numbers, I remove these characters ()- and "spaces" in the numbers. However, I sometimes find a "space" after the number. When I run a Find/Replace, where I find the "space" and then replace it with nothing, the "space" still remains and I cannot format it. Are you aware of this situation and what can I do to remove the "space" AFTER the numbers? BTW, this also occurs with Zip Codes as well.
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
=CODE(RIGHT(A1)) where A1 houses a suspect entry. This will give you a number n, probably, 160. Use =SUBSTITUTE(A1,CHAR(n),"")+0 +0 converts the entry to number after the cleaning. [ This Message was edited by: Aladin Akyurek on 2002-04-22 08:26 ] |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Are you sure that it's a space? What does =CODE(RIGHT(A1)) return where A1 is a cell containing one of your values?
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: =ActiveCell.Address
Posts: 478
|
One solution would be to download the excellent asap-utilities from http://asap-utilities.com
This has many handy formatting features, one of which is to "Delete leading trailing and excessive spaces" |
|
|
|
|
|
#5 | |
|
New Member
Join Date: Apr 2002
Posts: 3
|
Quote:
|
|
|
|
|
|
|
#6 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
|
||
|
|
|
|
|
#7 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
In an unused or inserted column enter the formula, =LEFT(A1,LEN(A1)-1)+0. Copy down as far as needed. Copy/Paste Special... Values replaceing your original values with these new ones. |
||
|
|
|
|
|
#8 | |||
|
New Member
Join Date: Apr 2002
Posts: 3
|
Quote:
|
|||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|