Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Help with manipulating text in Excel 2003

I have a column which is in the format of "Lastname, Firstname
textidonotcareabout".
I'd like to change the text to Firstname Lastname via a function. Is this
possible? If not then I'm trying to learn some basic VBA programming so a
macro could be an option. Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default Help with manipulating text in Excel 2003

Try using Data--Text-to-Columns... then go to Delimited and select space.

Other then that I know functions to switch last and first names but not with
extra data involved.

"Big UT Fan" wrote:

I have a column which is in the format of "Lastname, Firstname
textidonotcareabout".
I'd like to change the text to Firstname Lastname via a function. Is this
possible? If not then I'm trying to learn some basic VBA programming so a
macro could be an option. Thanks in advance!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Help with manipulating text in Excel 2003

With data in A1, first find the first space, in B1 enter:

=FIND(" ",A1,1)

To find the second space, in C1 enter:

=FIND(" ",A1,B1+1)

Finally in D1:

= MID(A1,B1,C1-B1+1) & LEFT(A1,B1-2)


--
Gary''s Student - gsnu200778


"akphidelt" wrote:

Try using Data--Text-to-Columns... then go to Delimited and select space.

Other then that I know functions to switch last and first names but not with
extra data involved.

"Big UT Fan" wrote:

I have a column which is in the format of "Lastname, Firstname
textidonotcareabout".
I'd like to change the text to Firstname Lastname via a function. Is this
possible? If not then I'm trying to learn some basic VBA programming so a
macro could be an option. Thanks in advance!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Help with manipulating text in Excel 2003

On Wed, 9 Apr 2008 10:38:01 -0700, Big UT Fan
wrote:

I have a column which is in the format of "Lastname, Firstname
textidonotcareabout".
I'd like to change the text to Firstname Lastname via a function. Is this
possible? If not then I'm trying to learn some basic VBA programming so a
macro could be an option. Thanks in advance!


Perhaps:

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

--ron
  #5   Report Post  
Member
 
Posts: 58
Default

Quote:
I have a column which is in the format of "Lastname, Firstname textidonotcareabout". I'd like to change the text to Firstname Lastname via a function. Is this possible? If not then I'm trying to learn some basic VBA programming so a macro could be an option. Thanks in advance!
This should help.

http://www.cpearson.com/excel/FirstLast.htm
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
text wrapping in Excel 2003 Tia Excel Discussion (Misc queries) 10 April 5th 07 10:36 AM
Training on Manipulating Data in Excel Rufus Excel Discussion (Misc queries) 1 October 18th 05 05:07 AM
Manipulating Text between sheets, in a workbook mdjennings Excel Discussion (Misc queries) 2 June 14th 05 10:20 PM
Where is text to speech in excel 2003? BogieJr Excel Discussion (Misc queries) 2 March 26th 05 08:04 PM
Text not copying as text from Word to Excel 2003 Christine Excel Discussion (Misc queries) 4 March 3rd 05 11:33 PM


All times are GMT +1. The time now is 05:52 AM.

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"