Removing Spaces

jpxsjpxs

New Member
Joined
Jan 30, 2008
Messages
18
Hi, I'm trying to copy an income statement from sec.gov and dump it into Excel (newest version). As I bring over the numbers and paste them into excel the numbers have some spaces in front of them and they are not registering as numbers. I read somewhere that if you put =code(a1) you can see what type of space it is. I get back the answer 160 which I think is char160 which seems to be a pian to work with. Is there a formula I can use to get rid of the char 160 in order to get the numbers in the cells to show up as numbers where I can then create formulas? I already tried =trim(substitute(a1,char(160)," ")) which didn't seem to work? Any help would be greatly appreciated. Thanks!!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
hi, the formula you gave me worked to get rid of the space, but the number in the cell still seems not to be a number. For instance, I couldn't take the result after the sub formula and add them together to get a result? Thanks!!
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

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