Delete Spaces at the end of text in a cell

deepakgoyal2005

Board Regular
Joined
Sep 1, 2008
Messages
58
I have a series of data in a column of an excel sheet with spaces at end.
I need a formula to delete the spaces at end only.
I tried with TRIM function but it deletes spaces in beginning of text as well, which is not required.
Please Help !!!
 
I'm not sure how we revived a 3 year old thread, but although it needs a correction, my intent was to maintain the leading spaces and get rid of the trailing ones, to comply with the request of the original post.
I tried with TRIM function but it deletes spaces in beginning of text as well, which is not required.

It should be this though:
=LEFT(A1,FIND(TRIM(A1),A1)+LEN(TRIM(A1))-1)
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

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