Flip data within cell macro

D

Dan Royal

My wife inherited a spreadsheet in which column A has peoples names in the
format of John Doe. She needs to change those all to format Doe John. I've
been trying to write a macro to do this but haven't been successful. Any
ideas?

Thanks,

Dan
 
J

Jean Ruch

Dan Royal said:
My wife inherited a spreadsheet in which column A has peoples names in the
format of John Doe. She needs to change those all to format Doe John. I've
been trying to write a macro to do this but haven't been successful. Any
ideas?

Thanks,

Dan


Hello Dan,

Under the Menue "Data" you have the option "Text in columns".

Applying it to the Columns where the names are (let's suppose it is A:A),
your wife gets the first and last names in separated columns
For that, the wizzard asks her how her Datas are separated
(=Space in her case)

With the Formula in C1 : = B1 &" "& A1
/ Copy / Paste values, she also gets the result she wants

regards

Jean
 
N

news.microsoft.com

Hello Dan,

Under the Menue "Data" you have the option "Text in columns".

Applying it to the Columns where the names are (let's suppose it is A:A),
your wife gets the first and last names in separated columns
For that, the wizzard asks her how her Datas are separated
(=Space in her case)

With the Formula in C1 : = B1 &" "& A1
/ Copy / Paste values, she also gets the result she wants

Bear in mind if you have double barrelled names in there, a space won't
necessarily give valid results in such automatic checks.

It really annoyed me when my bank did this and gave me an argument when
I told them they had my name wrong. They ended up losing the account.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top