#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Last Name

Hi,

I have hundreds of cell containing full names starting with their first
name. I need a formula to display Last Name, First name and Middle Initial.
Ex: Johnny K. Walker should be Walker, Johnny K.

Thxs,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Last Name

Look he

http://www.cpearson.com/excel/FirstLast.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Talladega" wrote in message ...
| Hi,
|
| I have hundreds of cell containing full names starting with their first
| name. I need a formula to display Last Name, First name and Middle Initial.
| Ex: Johnny K. Walker should be Walker, Johnny K.
|
| Thxs,


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Last Name

Thx for the reply, but the link did not help me with my question. It require
the info to already be by last name. I need a formula that would show last
name first, first name and middle from a cell that begin with the first to
last name.

"Niek Otten" wrote:

Look he

http://www.cpearson.com/excel/FirstLast.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Talladega" wrote in message ...
| Hi,
|
| I have hundreds of cell containing full names starting with their first
| name. I need a formula to display Last Name, First name and Middle Initial.
| Ex: Johnny K. Walker should be Walker, Johnny K.
|
| Thxs,



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Last Name

What's the difference? It's not like any formula can distinguish between a
first and a last name. All the formulas do is to reverse the order of the
text strings and that is what you want to do, right? Also you should really
post an example how the names look like, do you for instance have commas or
just spaces, if the latter you can replace "," with " "


--
Regards,

Peo Sjoblom

"Talladega" wrote in message
...
Thx for the reply, but the link did not help me with my question. It
require
the info to already be by last name. I need a formula that would show
last
name first, first name and middle from a cell that begin with the first to
last name.

"Niek Otten" wrote:

Look he

http://www.cpearson.com/excel/FirstLast.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Talladega" wrote in message
...
| Hi,
|
| I have hundreds of cell containing full names starting with their first
| name. I need a formula to display Last Name, First name and Middle
Initial.
| Ex: Johnny K. Walker should be Walker, Johnny K.
|
| Thxs,





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Last Name

Assuming full names always included middle initial, then try this:

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


"Talladega" wrote:

Hi,

I have hundreds of cell containing full names starting with their first
name. I need a formula to display Last Name, First name and Middle Initial.
Ex: Johnny K. Walker should be Walker, Johnny K.

Thxs,



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Last Name

Thx for the reply, full name does not always have the middle initial.

"Teethless mama" wrote:

Assuming full names always included middle initial, then try this:

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


"Talladega" wrote:

Hi,

I have hundreds of cell containing full names starting with their first
name. I need a formula to display Last Name, First name and Middle Initial.
Ex: Johnny K. Walker should be Walker, Johnny K.

Thxs,

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Last Name

=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=2,RIGHT(A1,LEN(A1)-FIND(" ",A1,FIND("
",A1)+1))&", "&LEFT(A1,FIND(" ",A1))&" "&MID(A1,FIND(" ",A1)+1,FIND("
",A1,FIND(" ",A1)+1)-FIND(" ",A1)),RIGHT(A1,LEN(A1)-FIND(" ",A1))&",
"&LEFT(A1,FIND(" ",A1)-1))


"Talladega" wrote:

Thx for the reply, full name does not always have the middle initial.

"Teethless mama" wrote:

Assuming full names always included middle initial, then try this:

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


"Talladega" wrote:

Hi,

I have hundreds of cell containing full names starting with their first
name. I need a formula to display Last Name, First name and Middle Initial.
Ex: Johnny K. Walker should be Walker, Johnny K.

Thxs,

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Last Name

Some of your results end with char(32). Try this, it's shorter:

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

If you have something like this it will be ok:

Oscar de la Hoya (boxer)

But, if you have something like this:

Oscar T. de la Hoya (boxer)
Martin St. Louis (NHL hockey player)

Good luck!

There are just *too many* possibilities to try to account for.

Biff

"Teethless mama" wrote in message
...
=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=2,RIGHT(A1,LEN(A1)-FIND("
",A1,FIND("
",A1)+1))&", "&LEFT(A1,FIND(" ",A1))&" "&MID(A1,FIND(" ",A1)+1,FIND("
",A1,FIND(" ",A1)+1)-FIND(" ",A1)),RIGHT(A1,LEN(A1)-FIND(" ",A1))&",
"&LEFT(A1,FIND(" ",A1)-1))


"Talladega" wrote:

Thx for the reply, full name does not always have the middle initial.

"Teethless mama" wrote:

Assuming full names always included middle initial, then try this:

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


"Talladega" wrote:

Hi,

I have hundreds of cell containing full names starting with their
first
name. I need a formula to display Last Name, First name and Middle
Initial.
Ex: Johnny K. Walker should be Walker, Johnny K.

Thxs,



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"