Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How Can I switch string

Posted on 2016-09-24
3
Medium Priority
?
46 Views
Last Modified: 2016-09-24
Hello EE,

Can someone please help me with an excel formula to remove comma and switch the string before the commas to the end of the string? I have the following example:

III, Wallace James
Janet Rhodes,
Adu, Mary Ann

Should be

Wallace James III
Janet Rhodes
Mary Ann Adu

Thanks in advance for your help
0
Comment
Question by:fb1990
  • 2
3 Comments
 
LVL 33

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 2000 total points
ID: 41813906
Assuming your string is in A1 then try this.....
In B1
=TRIM(RIGHT(A1,LEN(A1)-FIND(",",A1))&" "&REPLACE(A1,FIND(",",A1),255,""))

Open in new window


Edit: Or this after including the error handling.
=IFERROR(TRIM(RIGHT(A1,LEN(A1)-FIND(",",A1))&" "&REPLACE(A1,FIND(",",A1),255,"")),A1)

Open in new window

0
 
LVL 1

Author Closing Comment

by:fb1990
ID: 41813920
Thank you very much Sir.  Worked like a charm!
0
 
LVL 33

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41813965
You're welcome. Glad to help.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question