Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 71
Default Reversing Last Name and First Names

I have been given a spreadsheet with one column having approximately 1500
entries of First Name ( Some with Middle Initial ) Last name, in order to
upload this list into another program I need to have this one column become
two columns, one with all the first names and / initial if present, & the
second column with all the last names.

How do I do this without manually retyping all the names into the two new
columns?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default Reversing Last Name and First Names

Split active cell when run
(make a shortcut)

Sub test()
theCell = ActiveCell.Value
For x = 1 To Len(theCell)
If Mid(theCell, x, 1) = " " Then nr = x
Next
ActiveCell.Offset(0, 1) = Mid(theCell, nr + 1, 255)
ActiveCell = Mid(theCell, 1, nr - 1)
ActiveCell.Offset(1, 0).Select
End Sub


"Marvin" skrev:

I have been given a spreadsheet with one column having approximately 1500
entries of First Name ( Some with Middle Initial ) Last name, in order to
upload this list into another program I need to have this one column become
two columns, one with all the first names and / initial if present, & the
second column with all the last names.

How do I do this without manually retyping all the names into the two new
columns?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Reversing Last Name and First Names

Have a look at how Chip Pearson handles this type of data.

http://www.cpearson.com/excel/FirstLast.htm

Note the downloadable workbook with examples should you need it.


Gord Dibben MS Excel MVP

On Tue, 1 May 2007 13:43:00 -0700, Marvin
wrote:

I have been given a spreadsheet with one column having approximately 1500
entries of First Name ( Some with Middle Initial ) Last name, in order to
upload this list into another program I need to have this one column become
two columns, one with all the first names and / initial if present, & the
second column with all the last names.

How do I do this without manually retyping all the names into the two new
columns?


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
REVERSING CELLS? FARAZ QURESHI Excel Discussion (Misc queries) 1 January 18th 07 07:19 PM
Reversing a column. How? [email protected] Excel Discussion (Misc queries) 5 December 21st 06 09:04 PM
Reversing First and Last Names excelnewbie Excel Discussion (Misc queries) 5 June 10th 05 03:59 PM
Reversing First & Last Name Magic Excel Worksheet Functions 3 April 6th 05 08:18 PM
reversing the sheet Moreken Excel Discussion (Misc queries) 1 March 29th 05 03:55 AM


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