ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   I am trying to change Smith, John to John Smith (https://www.excelbanter.com/excel-discussion-misc-queries/86237-i-am-trying-change-smith-john-john-smith.html)

Levi

I am trying to change Smith, John to John Smith
 
The tricky part about this is the that it must be done in only 2 cells, all
of the example given in the Excel tutorials are using one cell for each name,
one for the first and one for the last. That however, does not help me. I
must convert these names in singles cells like such From:CELL1--[Smith,
John] To:CELL2--[John Smith]. CAN SOMEONE HELP ME PLEASE....1000 Thanks.

Elkar

I am trying to change Smith, John to John Smith
 
Try this:

=MID(A1,FIND(",",A1,1)+2,1024)&" "&LEFT(A1,FIND(",",A1,1)-1)

HTH,
Elkar


"Levi" wrote:

The tricky part about this is the that it must be done in only 2 cells, all
of the example given in the Excel tutorials are using one cell for each name,
one for the first and one for the last. That however, does not help me. I
must convert these names in singles cells like such From:CELL1--[Smith,
John] To:CELL2--[John Smith]. CAN SOMEONE HELP ME PLEASE....1000 Thanks.


daddylonglegs

I am trying to change Smith, John to John Smith
 

It's difficult to tell from your post but, assuming the first and last
names are separated by a comma then a space

=MID(A1&" "&A1,FIND(",",A1)+2,LEN(A1)-1)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=537891


Bob Phillips

I am trying to change Smith, John to John Smith
 
As long as they are all of that format

=MID(A1,FIND(", ",A1)+2,255)&" "&LEFT(A1,FIND(", ",A1)-1)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Levi" wrote in message
...
The tricky part about this is the that it must be done in only 2 cells,

all
of the example given in the Excel tutorials are using one cell for each

name,
one for the first and one for the last. That however, does not help me. I
must convert these names in singles cells like such From:CELL1--[Smith,
John] To:CELL2--[John Smith]. CAN SOMEONE HELP ME PLEASE....1000

Thanks.




All times are GMT +1. The time now is 08:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com