Removing spaces at the end of a name

PatrickSD

New Member
Joined
Apr 4, 2009
Messages
43
I have downloaded some data that includes a list of names.
I want to vlookup the names, but the download has put a space after the last letter in the name.
Is there a formula that I can use to eliminate this space after the last letter in the name in each cell.

Thanks for any help.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Patrick - if the data is in column A, then create a formula in column B for example:

=TRIM(A1)

this will remove leading and trailing spaces

then you can copy/paste as values to convert it from a formula into text.

cheers, Ian R.
 
Upvote 0
Patrick - if the data is in column A, then create a formula in column B for example:

=TRIM(A1)

this will remove leading and trailing spaces

then you can copy/paste as values to convert it from a formula into text.

cheers, Ian R.

Ian, thank you.
That is exactly what I needed. I couldn't remember the formula
I really appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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