PC Review


Reply
Thread Tools Rate Thread

Changing Cell Contents

 
 
Orion Cochrane
Guest
Posts: n/a
 
      16th Dec 2008
I have an employee list with names (First Last) in one column. Is there a way
to get the last name to show up first and then the first name? TIA.
--
I am running on Office 2003, unless otherwise stated.
 
Reply With Quote
 
 
 
 
Gary''s Student
Guest
Posts: n/a
 
      16th Dec 2008
Assuming that the names are in a single cell searated by a single blank,
select the cells and run this macro:

Sub swapum()
For Each r In Selection
s = Split(r.Value, " ")
r.Value = s(1) & " " & s(0)
Next
End Sub

--
Gary''s Student - gsnu200820


"Orion Cochrane" wrote:

> I have an employee list with names (First Last) in one column. Is there a way
> to get the last name to show up first and then the first name? TIA.
> --
> I am running on Office 2003, unless otherwise stated.

 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      16th Dec 2008
One way:

A1: First Last
B1: =TRIM(MID(A1,FIND(" ",A1)+1,255) & ", " & LEFT(A1,FIND(" ", A1)-1)

In article <3E530C15-FC02-4876-AE55-(E-Mail Removed)>,
Orion Cochrane <(E-Mail Removed)> wrote:

> I have an employee list with names (First Last) in one column. Is there a way
> to get the last name to show up first and then the first name? TIA.

 
Reply With Quote
 
Orion Cochrane
Guest
Posts: n/a
 
      16th Dec 2008
Tried the formula route, and it works awesome! Thanks. I can use this
elsewhere I bet.
--
I am running on Office 2003, unless otherwise stated.


"JE McGimpsey" wrote:

> One way:
>
> A1: First Last
> B1: =TRIM(MID(A1,FIND(" ",A1)+1,255) & ", " & LEFT(A1,FIND(" ", A1)-1)
>
> In article <3E530C15-FC02-4876-AE55-(E-Mail Removed)>,
> Orion Cochrane <(E-Mail Removed)> wrote:
>
> > I have an employee list with names (First Last) in one column. Is there a way
> > to get the last name to show up first and then the first name? TIA.

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing contents of cell based on Cell Format HeatherJ Microsoft Excel Worksheet Functions 3 22nd Dec 2009 03:06 PM
Changing Contents of a cell. Adam Microsoft Excel Programming 4 21st Feb 2008 04:39 PM
Changing cell contents Mike Microsoft Excel Misc 2 11th Feb 2008 04:41 PM
Changing the Contents of a Cell =?Utf-8?B?UGF1bFc=?= Microsoft Excel Misc 0 30th Mar 2006 10:40 AM
Moving contents of a cell without changing references to that cell elbows Microsoft Excel Misc 2 29th Mar 2004 05:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 PM.