Formula for format change?

dbpowell89

New Member
Joined
Jul 21, 2011
Messages
5
Hi,

I am running Excel 2007 in Windows XP.

How do I change a cell from "Smith,John" to "John Smith"?

Is there a formula I can use? What's the quickest way?


Thanks for the help!
 

Weaver

Well-known Member
Joined
Sep 10, 2008
Messages
5,196
Assuming your string is in A2, you could use:

=MID(A2,SEARCH(",",A2)+1,255)&" "&LEFT(A2,SEARCH(",",A2)-1)
 

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
Hi,

I am running Excel 2007 in Windows XP.

How do I change a cell from "Smith,John" to "John Smith"?

Is there a formula I can use? What's the quickest way?


Thanks for the help!
Here's another one...

=MID(A2&" "&A2,FIND(",",A2)+1,LEN(A2))
 

Forum statistics

Threads
1,077,653
Messages
5,335,508
Members
399,021
Latest member
XLReverseEngineering

Some videos you may like

This Week's Hot Topics

Top