Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,560
Default Data within a cell

If names are in cells as "last name, first name, middle initial" can a macro
be run to change the order to "first name, middle initial, last name"?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,722
Default Data within a cell

A formula will do

Assuming you have spaces between commas and names,
=MID(A2,FIND(",",A2)+2,FIND(",",A2,FIND(",",A2)))& RIGHT(A2,FIND(",",A2,FIND(",",A2)))&", "&LEFT(A2,FIND(",",A2)-1)

Then just copy down. If you want this more permanent, copy the cells with
formulas, right click, paste special.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"David" wrote:

If names are in cells as "last name, first name, middle initial" can a macro
be run to change the order to "first name, middle initial, last name"?

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 703
Default Data within a cell

Hi

No macro is needend.
With the names in column A enter this formula in column B1 and copy
down as needed.

=MID(A1,SEARCH(",",A1;1)+2,100) & ", " & LEFT(A1,SEARCH(",",A1)-1)

Then copy column B, select A1 and goto Paste Special Select "values"
Ok, then column B can be deleted.


HTH,

Per

On 6 Jan., 21:43, David wrote:
If names are in cells as "last name, first name, middle initial" can a macro
be run to change the order to "first name, middle initial, last name"?


  #4   Report Post  
Posted to microsoft.public.excel.newusers
pjy pjy is offline
external usenet poster
 
Posts: 14
Default Data within a cell

You could always split the cell into 3 columns by going to Data, then text to
columns and adjust that way as well.

"David" wrote:

If names are in cells as "last name, first name, middle initial" can a macro
be run to change the order to "first name, middle initial, last name"?

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
converting numerical data in one cell to word data in another cell Vishnu Excel Worksheet Functions 2 June 4th 08 03:14 PM
how to find number in a cell , a cell contains character data ornumeric data [email protected] Excel Worksheet Functions 3 February 19th 08 07:29 PM
moving data to a cell, not pulling data to the cell Yojinbou Excel Worksheet Functions 2 November 27th 06 07:32 PM
cell data not validated if navigating cell to cell with mouse LoveThatMouse Excel Worksheet Functions 6 May 21st 06 09:03 PM
Find MAX data in sheet (Cell) - Any cell that exceeds X amount of data confuzedagain Excel Discussion (Misc queries) 1 December 7th 05 05:56 PM


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