I downloaded a bunch of data but the names (350+ of them) are all listed exactly like this: Harden, JamesJames Harden
How can I manipulate this to look like this: James Harden
Thank you in advance.
I downloaded a bunch of data but the names (350+ of them) are all listed exactly like this: Harden, JamesJames Harden
How can I manipulate this to look like this: James Harden
Thank you in advance.
Assuming that string is in A2, put this formula in B2:
=MID(LEFT(A2,LEN(A2)/2+1),FIND(",",A2)+2,255)&" "&LEFT(A2,FIND(",",A2)-1)
then copy down as required.
Hope this helps.
Pete
Thanks Pete, it's almost there. The result is this: JamesJ Harden
Hi fpgary, this seems to work, bit messy looking though.
Edit: Ahh beaten again...I'm just too slow![]()
Please Login or Register to view this content.
Actually, Just tried Pete's formula in my sheet and it works fine.
Last edited by Beamernsw; 12-14-2015 at 09:38 PM.
Thanks Beamernsw but same as Pete's. The result is: JamesJ Harden
Why wouldn't it work for me? Do you have a different version? I have excel 2013.
Perhaps you have more or fewer spaces than shown in your single example. Attach a sample workbook and it will be clearer to us.
Pete
I can't figure out how to attach a file to this existing post.
figured it out. see attached. TY
Yes, you had two spaces at the end of your names. Try this formula in B2 instead:
=MID(LEFT(TRIM(A2),LEN(TRIM(A2))/2+1),FIND(",",A2)+2,255)&" "&LEFT(A2,FIND(",",A2)-1)
then copy down.
Hope this helps.
Pete
Another approach:
to search string to find where a lowercase and uppercase letter stick together like this "Harden, JameJames Harden "![]()
Please Login or Register to view this content.
Quang PT
And another.Formula:
Please Login or Register to view this content.
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks