![]() |
|
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Sep 2003
Posts: 315
|
Hi everyone,
I'm using Excel 2008 for a Mac. Not VBA supported. I would like to reverse a name. In a cell I have a name like this: Doe, John I would like it to read: John Doe My problem is there are hundreds of names and if I have to change them one by one I will go nuts. Any suggestions would be appreciated! Bill |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 40,228
|
In case all entries are like the one you posted...
=TRIM(REPLACE(A2,1,FIND(",",A2),""))&" "&LEFT(A2,FIND(",",A2)-1) |
|
|
|
|
|
#3 |
|
Join Date: Jan 2009
Location: Massachusetts, USA
Posts: 421
|
With
A1: (a name in the format: Last, First...eg Newman, Alfred E. ) This formula returns the FirstName(etc) followed by the LastName: Code:
B1: =TRIM(MID(A1&" "&A1,FIND(",",A1)+1,LEN(A1)))
Is that something you can work with?
__________________
Best Regards, Ron Last edited by Ron Coderre; Mar 7th, 2009 at 09:44 PM. Reason: Removed an unnecessary part of the formula |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|