Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 145
Default REVERSE SINGLE CELL TEXT STRING

I have a spreadsheet that lists names in a single cell (John Smith) I want
it to read as (Smith, John) in the cell to the left. Can you please advise
on how I can accomplish this.

thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default REVERSE SINGLE CELL TEXT STRING

http://www.cpearson.com/excel/FirstLast.htm
--
Gary's Student


"Tammy" wrote:

I have a spreadsheet that lists names in a single cell (John Smith) I want
it to read as (Smith, John) in the cell to the left. Can you please advise
on how I can accomplish this.

thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default REVERSE SINGLE CELL TEXT STRING

As long as the names have only two words:

=MID(A2&", "&A2,FIND(" ",A2)+1,LEN(A2)+1)

John Smith returns: Smith, John

If some names are more than 2 words then I'm not sure how to do it because
there are too many variables to consider. For example:

John Lee St. Pierre Jr.

???????

Biff

"Tammy" wrote in message
...
I have a spreadsheet that lists names in a single cell (John Smith) I want
it to read as (Smith, John) in the cell to the left. Can you please
advise
on how I can accomplish this.

thanks



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
Vlookup partial text from a single cell Sparky13 Excel Worksheet Functions 4 September 7th 06 01:37 PM
Find & Replace text format jmn13 Excel Discussion (Misc queries) 2 May 25th 06 06:18 PM
Return a formula as text string to a cell Sharon Excel Worksheet Functions 4 April 18th 06 05:40 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
How can I combine text and a function in a single cell slot guy Excel Worksheet Functions 3 January 19th 05 04:13 PM


All times are GMT +1. The time now is 11:54 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"