how to remove spaces before commas

bulletproof

New Member
Joined
Jun 22, 2011
Messages
26
hi guys.

sorry for being a newb but would any of you
would be kind enough to show me a formula for:

what I have:

last name , first name
last name, first name
last name , first name

what i need to do:

last name, first name
last name, first name
last name, first name


as you can see, some of those last names have spaces before the commas. I need to get those spaces out.
I understand that the TRIM function only deals with the spaces before
and after and the trailing ones.

I tried to search for it, though not quite successful in my chosen keywords.

I'm just an old dog trying to learn new tricks from excel.

thanks much.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
"dale,paul"

How does Excel work out which is the first and second name?

hmmm.... i got you.
it makes sense now.
sorry for being slow.

I guess i would sort it out individually.

not that to many, i hope :D

thanks again.
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,181
Members
453,151
Latest member
Lizamaison

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