Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Rearranging Name Format

Using a formula I wish to be able to convert a whole column of names
formatted as follows

1. SMITH, Dane
2. ALLENBY, Gary
3. MCDONALD, Leigh
4. O'CONNOR, Paul
5. MAYFIELD-SMITH, Jimmy
6. HARRISON, Lenny

to

Dane Smith
Gary Allenby
Leigh McDonald
Paul O'Connor
Jimmy Mayfield-Smith
Lenny Harrison

I have hundreds of names that need to be converted so changing manually
would be very time consuming. Any help on this would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Rearranging Name Format

With your names in column A starting with A1, put this in B1:

=PROPER(RIGHT(A1,LEN(A1)-SEARCH(",",A1)-1)&"
"&LEFT(A1,SEARCH(",",A1)-1))

and copy down to the bottom of your list of names. You will get this:

Dane Smith
Gary Allenby
Leigh Mcdonald
Paul O'Connor
Jimmy Mayfield-Smith
Lenny Harrison

with your test data, which is not quite what you wanted (note
McDonald).

Hope this helps.

Pete

On Feb 4, 11:44*pm, Rocko wrote:
Using a formula I wish to be able to convert a whole column of names
formatted as follows

1. SMITH, Dane
2. ALLENBY, Gary
3. MCDONALD, Leigh
4. O'CONNOR, Paul
5. MAYFIELD-SMITH, Jimmy
6. HARRISON, Lenny

to

Dane Smith
Gary Allenby
Leigh McDonald
Paul O'Connor
Jimmy Mayfield-Smith
Lenny Harrison

I have hundreds of names that need to be converted so changing manually
would be very time consuming. Any help on this would be greatly appreciated.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Rearranging Name Format

Try:

=MID(A1,FIND(", ",A1)+2,256)&" "&PROPER(LEFT(A1,LEN(A1)-FIND(", ",A1)))
--
Gary''s Student - gsnu201001


"Rocko" wrote:

Using a formula I wish to be able to convert a whole column of names
formatted as follows

1. SMITH, Dane
2. ALLENBY, Gary
3. MCDONALD, Leigh
4. O'CONNOR, Paul
5. MAYFIELD-SMITH, Jimmy
6. HARRISON, Lenny

to

Dane Smith
Gary Allenby
Leigh McDonald
Paul O'Connor
Jimmy Mayfield-Smith
Lenny Harrison

I have hundreds of names that need to be converted so changing manually
would be very time consuming. Any help on this would be greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Rearranging Name Format

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


"Rocko" wrote:

Using a formula I wish to be able to convert a whole column of names
formatted as follows

1. SMITH, Dane
2. ALLENBY, Gary
3. MCDONALD, Leigh
4. O'CONNOR, Paul
5. MAYFIELD-SMITH, Jimmy
6. HARRISON, Lenny

to

Dane Smith
Gary Allenby
Leigh McDonald
Paul O'Connor
Jimmy Mayfield-Smith
Lenny Harrison

I have hundreds of names that need to be converted so changing manually
would be very time consuming. Any help on this would be greatly appreciated.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Rearranging Name Format

Thanks for your help. This almost works but I may not have made it clear with
my question. I am trying to remove the preceding number from my result. If I
remove the number preceding the original name your formula works great, but
at the moment it is still picking up that number & I am getting the result
"Smith, Dane 1".

"Teethless mama" wrote:

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


"Rocko" wrote:

Using a formula I wish to be able to convert a whole column of names
formatted as follows

1. SMITH, Dane
2. ALLENBY, Gary
3. MCDONALD, Leigh
4. O'CONNOR, Paul
5. MAYFIELD-SMITH, Jimmy
6. HARRISON, Lenny

to

Dane Smith
Gary Allenby
Leigh McDonald
Paul O'Connor
Jimmy Mayfield-Smith
Lenny Harrison

I have hundreds of names that need to be converted so changing manually
would be very time consuming. Any help on this would be greatly appreciated.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Rearranging Name Format

On Thu, 4 Feb 2010 20:02:04 -0800, Rocko
wrote:

Thanks for your help. This almost works but I may not have made it clear with
my question. I am trying to remove the preceding number from my result. If I
remove the number preceding the original name your formula works great, but
at the moment it is still picking up that number & I am getting the result
"Smith, Dane 1".

"Teethless mama" wrote:

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


I think most of us probably thought the numbers were just to show the rows.

But to remove the numbers, replace A1 with a formula that returns the string
that starts after the first ".", and also trims off any spaces, in case some of
your names don't have a space following the number.

e.g., adapting Teethless Mama's formula:

=PROPER(MID(TRIM(MID(A1,FIND(".",A1)+1,99))&" "&TRIM(
MID(A1,FIND(".",A1)+1,99)),FIND(" ",TRIM(MID(A1,FIND(
".",A1)+1,99)))+1,LEN(TRIM(MID(A1,FIND(".",A1)+1,9 9)))-1))

--ron
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Rearranging Name Format

That worked perfectly thanks Ron. You guys are a fantastic help. Have a good
day.

"Ron Rosenfeld" wrote:

On Thu, 4 Feb 2010 20:02:04 -0800, Rocko
wrote:

Thanks for your help. This almost works but I may not have made it clear with
my question. I am trying to remove the preceding number from my result. If I
remove the number preceding the original name your formula works great, but
at the moment it is still picking up that number & I am getting the result
"Smith, Dane 1".

"Teethless mama" wrote:

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


I think most of us probably thought the numbers were just to show the rows.

But to remove the numbers, replace A1 with a formula that returns the string
that starts after the first ".", and also trims off any spaces, in case some of
your names don't have a space following the number.

e.g., adapting Teethless Mama's formula:

=PROPER(MID(TRIM(MID(A1,FIND(".",A1)+1,99))&" "&TRIM(
MID(A1,FIND(".",A1)+1,99)),FIND(" ",TRIM(MID(A1,FIND(
".",A1)+1,99)))+1,LEN(TRIM(MID(A1,FIND(".",A1)+1,9 9)))-1))

--ron
.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Rearranging Name Format

On Fri, 5 Feb 2010 18:20:01 -0800, Rocko
wrote:

That worked perfectly thanks Ron. You guys are a fantastic help. Have a good
day.


Glad to help, as I'm sure are the others. Thanks for the feedback.
--ron
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
Rearranging irregular data to monthly format [email protected] Excel Discussion (Misc queries) 2 April 8th 09 09:55 PM
Rearranging irregular data to monthly format [email protected] Excel Worksheet Functions 2 April 8th 09 09:55 PM
Rearranging a date Janice B. - Cleveland, Ohio Excel Worksheet Functions 3 March 14th 07 06:43 PM
Rearranging numbers Gary''s Student Excel Discussion (Misc queries) 0 November 29th 06 02:45 PM
Rearranging numbers ashw1984 Excel Discussion (Misc queries) 0 November 29th 06 01:12 PM


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