Hello RW:
This is a discussion group on access, not excel. Therefore I will
tell you how to do this with Access!
Create a new access file.
Save the table in your excel spreadsheet to a new spreadsheet file,
one with JUST that table on it and have clear simple column headings
across row 1 (but name the column with the names in it "FullName")
Import your excel spreadsheet into an access table... pay attention
in the wizard and make sure everything is setup right (when in doubt
choose "text" as the field type for now).
Now, open your table in Access in design view.
Create two new fields "FirstName" "LastName", both text.
Save your table and close it.
Create an update query in design mode.
Choose your table as the query source.
Choose "Update Type" query.
Choose the fields FirstName and Lastname.
Under "Update to" for "FirstName" put:
Left([FullName],InStr([FullName]," ")-1)
Under "Update to" for "LastName" put:
Mid([FullName],InStr([FullName]," ")+1,20)
Run the Query.
Copy+Paste or export your table back to excel. Be sure to use "Paste
Special" and "Values" if you don't want to mess up formatting in your
original spreadsheet.
Move the "FirstName" and "LastName" columns to wherever you want...
then just run a sort on the LastName column. You can choose "Hide
Columns" on those after.
Hope that helps,
~J
Hi everyone,
I have a question about sorting in Excel.
I didn't seperate my names with a first and last name field.
Now, I need to alphabetize by the last name....is there anyway to do this
when the first and last name are in the same field?
thanks
RW