Remove space(s) before a numerical value within a cell

DMP3

New Member
Joined
Aug 11, 2010
Messages
11
Trying to remove the space in front of the number '1' in cell A2.

So value in cell A2 is = " 1"

TRIM function does not work for removing the space before the 1.

Any ideas please?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Find and Replace (Ctl+H)

Select column A
Find: (enter a space)
Replace: (leave blank)
Hit Replace All
 
Upvote 0
TRIM function does not work for removing the space before the 1.

It should work in theory.

Can you show us how you use the formula? In what cell?

Is it really a space in front of the 1?
 
Upvote 0
Trying to remove the space in front of the number '1' in cell A2.

So value in cell A2 is = " 1"

TRIM function does not work for removing the space before the 1.

Any ideas please?
The offending character may not be a standard char 32 space.

What result do you get with this formula:

=CODE(A2)

That will return the character code of the offending character. Once we know that we'll have a better idea of how to kill it!
 
Upvote 0
Thank you everybody but it looks like the issue is because my colleague has OLD exel and I have NEW excel... he has had many issues with his excel and some formulas not working properly.

Thank you all again.
 
Upvote 0
hello,

Trim worked in Workbook A but not working in the workbook B on same DATA??

anyone plz help me here?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,482
Messages
6,160,086
Members
451,616
Latest member
swgrinder

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