Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
I have an exercises where I have a list of different names, of different lengths but I want a result which packs out the name with trailing spaces so that the final length of the name and spaces always equals 15 for each. ie john needs 11 spaces added to it for the length to be 15 but andrew needs 9 spaces added. Thanks G |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
Try =(A1)&REPT(" ",15-LEN(A1)) -- Regards Roger Govier "Constantly Amazed" wrote in message ... Hi I have an exercises where I have a list of different names, of different lengths but I want a result which packs out the name with trailing spaces so that the final length of the name and spaces always equals 15 for each. ie john needs 11 spaces added to it for the length to be 15 but andrew needs 9 spaces added. Thanks G |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Roger
Thanks that works just fine and has saved me a good deal of time. G "Roger Govier" wrote: Hi Try =(A1)&REPT(" ",15-LEN(A1)) -- Regards Roger Govier "Constantly Amazed" wrote in message ... Hi I have an exercises where I have a list of different names, of different lengths but I want a result which packs out the name with trailing spaces so that the final length of the name and spaces always equals 15 for each. ie john needs 11 spaces added to it for the length to be 15 but andrew needs 9 spaces added. Thanks G |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Just append 15 blanks to your text and take leftmost 15 characters: =LEFT(A1&REPT(" ",15),15) HTH, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help needed - creating invoice from packing list (both in excel) | Excel Discussion (Misc queries) | |||
Named Ranges - what characters are (or are not) allowed in the nam | Excel Discussion (Misc queries) | |||
How can I control the length of characters a code will return? | Excel Discussion (Misc queries) | |||
Formula to replace invalid filename characters | Excel Worksheet Functions | |||
Help - Can't directly input Japanese characters into cell | Excel Discussion (Misc queries) |