What is this comma doing?!

Emma Eve

New Member
Joined
Jan 24, 2018
Messages
20
Hello.

I have a bit of an issue. I am trying to combine a first name and last name with a comma in between. For example, I need Jane Doe to become Doe, Jane.
Cell C1 is Jane
Cell D1 is Doe
I have used these formulas:
=D1&","&C1
=CONCATENATE(D1,",",C1)

In both cases the result is: Doe ,Jane. How to I get the comma in the right place?

Thank you!

Emma
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Does it have trailing spaces?

Try

Code:
=TRIM(D1)&", "&TRIM(C1)

?
 
Upvote 0
Hi. Thank you for the reply. I copied the formula in and the result is: Duff , Aaron. I'm still messing up, aren't I?
 
Upvote 0
There is a character at the end of D1 after the name you see in it, previous answers assumed it was a space.
But if the suggested solutions didn't work, then it's NOT a space.

What does this return

=CODE(RIGHT(D1,1))
 
Upvote 0
Whose formula did you use? The one from post #2 , I would expect to possibly give you the same results, either formula from post 3 or 4 should give you the result you would want though.
 
Upvote 0
Jonmo1 - you nailed it. There was a space hiding out behind the last night. I got rid of it and now the formula returns the desired results. Thank you all so much!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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