Remove space in front of number

basils57

New Member
Joined
Mar 20, 2012
Messages
18
Office Version
  1. 365
Platform
  1. MacOS
I have copied a column of values into a workbook, but am unable to apply a formula to it (get [FONT=Segoe UI, Segoe UI Web, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif]#VALUE) as it has a space in front of it. If I remove the space I can apply the formula.
How can I remove these spaces to the column, other than individually please?
[/FONT]
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Highlight the column, bring up Find/Replace, and replace a single space with nothing (leave the Replace With value empty). Then click the Replace All button.

Or if they all have the leading space, you could also do Text to Columns, choosing the Fixed Width option, and setting the delimiter after the first space, and electing to not import the first field.
 
Last edited:
Upvote 0
Many thanks Joe4, I thought it would be something simple.
Both the suggestions I suggested are pretty simple, and could be done in under a minute and do not require any "helper" columns or anything like that.

Another alternative is to leave it the way it is, and try to account for it your formula (i.e. using the TRIM or MID function).
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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