Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VB function to reorder names?

I'm very new to VB and Excel, and I have been given a project at work.
I need to convert name data in cells from smith, john to john smith.

I was hoping I could run a VB function on the cells to reorder the
names. I looked in the help files for examples and the closest thing
I found was to split the cells into columns, but that won't work for me.

can anyone help me out with this?

Thank you

Will

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default VB function to reorder names?

Hi
as a starting point see:
http://www.cpearson.com/excel/FirstLast.htm

--
Regards
Frank Kabel
Frankfurt, Germany

"Will Tyson" schrieb im Newsbeitrag
news:2004052115161729886%weric@lobalopecom...
I'm very new to VB and Excel, and I have been given a project at

work.
I need to convert name data in cells from smith, john to john smith.

I was hoping I could run a VB function on the cells to reorder the
names. I looked in the help files for examples and the closest

thing
I found was to split the cells into columns, but that won't work for

me.

can anyone help me out with this?

Thank you

Will


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default VB function to reorder names?

There's probably an easier way, but here's something that may work:

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


--
Rob van Gelder - http://www.vangelder.co.nz/excel


"Will Tyson" wrote in message
news:2004052115161729886%weric@lobalopecom...
I'm very new to VB and Excel, and I have been given a project at work.
I need to convert name data in cells from smith, john to john smith.

I was hoping I could run a VB function on the cells to reorder the
names. I looked in the help files for examples and the closest thing
I found was to split the cells into columns, but that won't work for me.

can anyone help me out with this?

Thank you

Will



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VB function to reorder names?

thanks for the tips and web links everyone!

they were very helpful!



On 2004-05-21 17:02:31 -0600, "Rob van Gelder"
said:

There's probably an easier way, but here's something that may work:

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





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
Reorder String msnyc07 Excel Worksheet Functions 0 February 16th 10 10:49 PM
reorder data ellebelle Excel Worksheet Functions 0 June 19th 07 10:00 AM
Update Table or Reorder Jeff C Excel Discussion (Misc queries) 3 March 30th 07 09:18 PM
Reorder columns? Arinté Excel Discussion (Misc queries) 0 October 24th 06 06:33 PM
reorder function cb chiam Excel Worksheet Functions 0 August 2nd 05 11:28 PM


All times are GMT +1. The time now is 03:38 PM.

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"