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

Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need John
Smith. Would someone please help with a formula that would switch the names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Format Name

maybe this in b1 and dragged down

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

Mike

"Dax Arroway" wrote:

Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need John
Smith. Would someone please help with a formula that would switch the names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.

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

One way:

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

In article ,
Dax Arroway wrote:

Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need John
Smith. Would someone please help with a formula that would switch the names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Format Name

Thanks Mike but the first letter of the last name also goes lower case. How
do I get the first letter to remain capitalized?

"Mike H" wrote:

maybe this in b1 and dragged down

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

Mike

"Dax Arroway" wrote:

Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need John
Smith. Would someone please help with a formula that would switch the names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Format Name

It's all to do with spaces, see your other reponse where spaces are trimmed
out.

Mike

"Dax Arroway" wrote:

Thanks Mike but the first letter of the last name also goes lower case. How
do I get the first letter to remain capitalized?

"Mike H" wrote:

maybe this in b1 and dragged down

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

Mike

"Dax Arroway" wrote:

Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need John
Smith. Would someone please help with a formula that would switch the names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.



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

PERFECT! Thanks so much! You guys rock. I'd have never figured that out on
my own.

"JE McGimpsey" wrote:

One way:

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

In article ,
Dax Arroway wrote:

Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need John
Smith. Would someone please help with a formula that would switch the names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.


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

If you come back to this thread, here is a shorter alternative method...

=PROPER(MID(A7&" "&A7,FIND(" ",A7)+1,LEN(A7)-1))

Rick


"Dax Arroway" wrote in message
...
Can someone please help with a formula?

In Column A I have names formatted as SMITH, John. In Column B I need
John
Smith. Would someone please help with a formula that would switch the
names,
get rid of the comma, and change the case to lower case of the last name
except for the first letter?

Thanks in advance!
- D.


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lock Cell Format - Allow copy and paste of data without format change Chris12InKC Excel Worksheet Functions 2 May 9th 23 07:42 PM
Adding time in 24 hour format to produce hours in decimal format Hercdriver Excel Worksheet Functions 11 December 29th 09 02:06 AM
Decide comment format 'globally'? Restore format with ws_change? tskogstrom Excel Discussion (Misc queries) 0 April 16th 07 09:07 AM
Replace million-billion number format to lakhs-crores format Sumit Excel Discussion (Misc queries) 1 December 9th 05 04:58 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM


All times are GMT +1. The time now is 02:34 AM.

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

About Us

"It's about Microsoft Excel"