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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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,213,496
Messages
6,113,993
Members
448,539
Latest member
alex78

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