Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=RIGHT(A1,LEN(A1)-FIND(" ",A1))&"_"&LEFT(A1,2)
|
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),5)&"_"&LEFT(A1,2)
|
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
see Bob's formula
it's better/more concise |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting cells in a column with conditional formatting? | Excel Discussion (Misc queries) | |||
Protect Cell Formatting including Conditional Formatting | Excel Discussion (Misc queries) | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
expanding custom formatting without removing existing cell formatting? | Excel Worksheet Functions |