#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default name sorting

I created a worksheet. In Colum A is the name colum, example I typed John Doe
in A1, is there a funtion that will enter his name as Doe John? I eneterd the
next name Dick Clark is there a function that will Automatically alphabetize
so it would go up to A1 or do you just have to click on the sort button?
looks like this
John Doe
Dick Clark

want it to look like this
Clark Dick
Doe John
--
Microsoft Office 2003 Version
Students and Teachers Edition
Windows Vista Home Premium

Thank-you
Carl R

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default name sorting

Try this...

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

Change the cell reference A1 to your desired cell.

If this Post Helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"Carl R" wrote:

I created a worksheet. In Colum A is the name colum, example I typed John Doe
in A1, is there a funtion that will enter his name as Doe John? I eneterd the
next name Dick Clark is there a function that will Automatically alphabetize
so it would go up to A1 or do you just have to click on the sort button?
looks like this
John Doe
Dick Clark

want it to look like this
Clark Dick
Doe John
--
Microsoft Office 2003 Version
Students and Teachers Edition
Windows Vista Home Premium

Thank-you
Carl R

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default name sorting

Just format the cell as Text and try to enter the value

Select the range and do Right Click and select Format
CellsNumberCategoryText and give ok.

Otherwise before entering the value in a cell type ' and enter your Zero
value numbers.

If this post helps, Click Yes!

--------------------
(MS-Exl-Learner)
--------------------


"Carl R" wrote:

I created a worksheet. In Colum A is the name colum, example I typed John Doe
in A1, is there a funtion that will enter his name as Doe John? I eneterd the
next name Dick Clark is there a function that will Automatically alphabetize
so it would go up to A1 or do you just have to click on the sort button?
looks like this
John Doe
Dick Clark

want it to look like this
Clark Dick
Doe John
--
Microsoft Office 2003 Version
Students and Teachers Edition
Windows Vista Home Premium

Thank-you
Carl R

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default name sorting

Please Ignore my previous post, By mistake i was posted it in your query....

--------------------
(Ms-Exl-Learner)
--------------------



"Ms-Exl-Learner" wrote:

Just format the cell as Text and try to enter the value

Select the range and do Right Click and select Format
CellsNumberCategoryText and give ok.

Otherwise before entering the value in a cell type ' and enter your Zero
value numbers.

If this post helps, Click Yes!

--------------------
(MS-Exl-Learner)
--------------------


"Carl R" wrote:

I created a worksheet. In Colum A is the name colum, example I typed John Doe
in A1, is there a funtion that will enter his name as Doe John? I eneterd the
next name Dick Clark is there a function that will Automatically alphabetize
so it would go up to A1 or do you just have to click on the sort button?
looks like this
John Doe
Dick Clark

want it to look like this
Clark Dick
Doe John
--
Microsoft Office 2003 Version
Students and Teachers Edition
Windows Vista Home Premium

Thank-you
Carl R

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default name sorting

Just to add to Ms-Exl_Learner's response.

There was an unfortunate line break in the formula:

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

If you put this formula in B1, then it will reverse the 2 piece name in A1.
Then you can drag this formula down column B as far as your data goes in column
A.

But then you'll still have to select columns A and B and sort that data using
column B as the primary key.

Ms-Exl-Learner wrote:

Try this...

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

Change the cell reference A1 to your desired cell.

If this Post Helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------

"Carl R" wrote:

I created a worksheet. In Colum A is the name colum, example I typed John Doe
in A1, is there a funtion that will enter his name as Doe John? I eneterd the
next name Dick Clark is there a function that will Automatically alphabetize
so it would go up to A1 or do you just have to click on the sort button?
looks like this
John Doe
Dick Clark

want it to look like this
Clark Dick
Doe John
--
Microsoft Office 2003 Version
Students and Teachers Edition
Windows Vista Home Premium

Thank-you
Carl R


--

Dave Peterson
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
Sorting Values Without Sorting Formulas SBX Excel Discussion (Misc queries) 2 April 12th 09 11:17 PM
Automatic sorting (giving max and min) based on custom sorting lis Joe Lewis[_2_] Excel Worksheet Functions 4 November 23rd 08 05:12 AM
Sorting VLookup vs Sorting SumProduct Lauren Excel Discussion (Misc queries) 1 August 21st 07 12:19 AM
Sorting: Sorting by the First Character dzuy Excel Discussion (Misc queries) 2 June 22nd 06 08:27 PM


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