Trimming 1 space at end of text string to create a number.

Wingz

New Member
Joined
Mar 5, 2002
Messages
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?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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
 
Upvote 0

Forum statistics

Threads
1,223,396
Messages
6,171,866
Members
452,427
Latest member
samk379

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top