![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 33
|
I inherited a worksheet that has obviously been imported from some other Dbase format. Every single number has a " " (space) behind it, making it text. I tried using trim and Rtrim to get that space out so the value would be a number again, but it does not work. Can anyone help me out on this one?
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Feb 2002
Posts: 47
|
Try this:
=Value(Trim(a1)) |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
If you already tried TRIM it probably isn't a space. Use =CODE(RIGHT(A1)) (where A1 contains one of your "numbers") to pick out this character. Click on the formula bar after selecting the cell containing =CODE(RIGHT(A1)) and press F9. What's the ASCII number that's displayed?
Also, consider using =LEFT(A1,LEN(A1)-1)+0 to trim and convert your "number".> [ This Message was edited by: Mark W. on 2002-03-06 10:56 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|