Quick question

bomberman411

Board Regular
Joined
Oct 23, 2007
Messages
169
Hi all,

Is there a way to make sure there is no space at the end of cells?

For example: let's say I have cells with info in them ("Hello"), how can I be sure it doesn't look like ("Hello ")?
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

bomberman411

Board Regular
Joined
Oct 23, 2007
Messages
169
Hi VoG,

I have never used the TRIM function before. How do I make sure it only takes off spaces at the end and nothing else?
 

dafan

Well-known Member
Joined
May 6, 2008
Messages
692
Hi VoG,

I have never used the TRIM function before. How do I make sure it only takes off spaces at the end and nothing else?
This can be done with VBA. VBA has LTrim and RTrim to remove leading and trailing spaces.
 

bomberman411

Board Regular
Joined
Oct 23, 2007
Messages
169
Thanks guys, I appreciate the help.

I will definetely check the TRIM function out very soon.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,576
Messages
5,596,992
Members
414,115
Latest member
SFUser

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
Top