Concatenate formula questions about First Name Last Name and spaces not matching

purplesasha

New Member
Joined
Feb 15, 2013
Messages
1
I have a spreadsheet containing 3 columns, First Name, Nickname and Last Name.

In a separate column, I concatenate First Name and Last Name as =PROPER(D2&" "&F2) to return the following:

Jane Doe

It appears that there are many spaces between between First Name and Last Name even though the formula only indicates one space.

I copy the entire column from that spreadsheet to another spreadsheet in which I want to use the =MATCH(E2,A$2:A$427,0) formula, but it doesn't work with the column I am comparing because the name there displays as:

Jane Doe

It does not work unless I retype the name manually without the CONCATENATE formula and there are 400+ names on the spreadsheet to compare to the master list of names I want to concatenate.

I am not sure why the values are not matching up
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi purplesasha,

You can also use =proper(trim(clean(First_Name)&" "&clean(Last_Name)))

This will remove all the spaces and not printable characters in the cell since many a times it appears that there is a space in the cell but actually they may be some other special characters which could be removed by the clean function.

Thanks/Raj
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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