#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default Name Formatting

Hi All,

I would like to know if its possible for Excel to take a persons name and
format it so it will take the first 5 letters of the Surname and the first 2
letters of the first name and produce the formatted result into an empty
cell.. i.e

Chris Jones = jones_ch

there must be a "_" inbetween the surname and first name.

Any help on this would be great.

Thank you.
Chris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Name Formatting

The name being in B22
=MID(B22,SEARCH(" ",B22)+1,LEN(B22)--SEARCH(" ",B22))&"_"&LOWER(LEFT(B22,2))
Regards,
Stefi

€˛Chris€¯ ezt Ć*rta:

Hi All,

I would like to know if its possible for Excel to take a persons name and
format it so it will take the first 5 letters of the Surname and the first 2
letters of the first name and produce the formatted result into an empty
cell.. i.e

Chris Jones = jones_ch

there must be a "_" inbetween the surname and first name.

Any help on this would be great.

Thank you.
Chris

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default Name Formatting

Hi Stefi,

This works great.. but is it possible to limit the surname to just 5 letters?
like:

Ross McGuinnes = mcgui_ro


Thanks.
Chris


"Stefi" wrote:

The name being in B22
=MID(B22,SEARCH(" ",B22)+1,LEN(B22)--SEARCH(" ",B22))&"_"&LOWER(LEFT(B22,2))
Regards,
Stefi

€˛Chris€¯ ezt Ć*rta:

Hi All,

I would like to know if its possible for Excel to take a persons name and
format it so it will take the first 5 letters of the Surname and the first 2
letters of the first name and produce the formatted result into an empty
cell.. i.e

Chris Jones = jones_ch

there must be a "_" inbetween the surname and first name.

Any help on this would be great.

Thank you.
Chris

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Name Formatting

=RIGHT(A1,LEN(A1)-FIND(" ",A1))&"_"&LEFT(A1,2)
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Name Formatting

=LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),5)&"_"&LEFT(A1,2)



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 788
Default Name Formatting

fantasic, thank you.
this has saved me alot of time, thanks again!


Chris

"Jarek Kujawa" wrote:

=RIGHT(A1,LEN(A1)-FIND(" ",A1))&"_"&LEFT(A1,2)

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default Name Formatting

=MID(A1,FIND(" ",A1)+1,5)&"_"&LEFT(A1,2)

--
__________________________________
HTH

Bob

"Chris" wrote in message
...
Hi Stefi,

This works great.. but is it possible to limit the surname to just 5
letters?
like:

Ross McGuinnes = mcgui_ro


Thanks.
Chris


"Stefi" wrote:

The name being in B22
=MID(B22,SEARCH(" ",B22)+1,LEN(B22)--SEARCH("
",B22))&"_"&LOWER(LEFT(B22,2))
Regards,
Stefi

"Chris" ezt ķrta:

Hi All,

I would like to know if its possible for Excel to take a persons name
and
format it so it will take the first 5 letters of the Surname and the
first 2
letters of the first name and produce the formatted result into an
empty
cell.. i.e

Chris Jones = jones_ch

there must be a "_" inbetween the surname and first name.

Any help on this would be great.

Thank you.
Chris



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Name Formatting

see Bob's formula
it's better/more concise
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 304
Default Name Formatting

Hello sir,
I'm trying to use the below with a slite modification:
=MID(B158,FIND(" ",B158)+1,5)
How ever, the number in the mid is not always 5 digits long. Is there a way
to have that change or count the mid number and bring back only that number?
I would also need to do the same thing but for the number on the right.
1 4210210 134.40
2 30362920 395.40
3 820401-2 116.20
4 728435514 152.06
5 820401-1 194.57
6 820501-1 365.90
7 42111438 158.50

Thanks

"Bob Phillips" wrote:

=MID(A1,FIND(" ",A1)+1,5)&"_"&LEFT(A1,2)

--
__________________________________
HTH

Bob

"Chris" wrote in message
...
Hi Stefi,

This works great.. but is it possible to limit the surname to just 5
letters?
like:

Ross McGuinnes = mcgui_ro


Thanks.
Chris


"Stefi" wrote:

The name being in B22
=MID(B22,SEARCH(" ",B22)+1,LEN(B22)--SEARCH("
",B22))&"_"&LOWER(LEFT(B22,2))
Regards,
Stefi

"Chris" ezt Ć*rta:

Hi All,

I would like to know if its possible for Excel to take a persons name
and
format it so it will take the first 5 letters of the Surname and the
first 2
letters of the first name and produce the formatted result into an
empty
cell.. i.e

Chris Jones = jones_ch

there must be a "_" inbetween the surname and first name.

Any help on this would be great.

Thank you.
Chris




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
Formatting cells in a column with conditional formatting? shamor Excel Discussion (Misc queries) 8 May 19th 08 10:11 PM
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
expanding custom formatting without removing existing cell formatting? Keith Excel Worksheet Functions 3 December 27th 06 01:54 PM


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