Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
MWysack
You have a considerable problem here to give a visual look to the line as you show it. Consider the width of the letters 'm' & 'i' so a name with a double 'm' will visually appear wider than a name with 'i's in it. Anyhow try this as being the best I think you may get for variable lengths of names and widths of letters: =REPLACE(A1&B1&C1&D1,LEN(A1&B1&C1)+1,0,REPT(" ",30-LEN(A1&B1&C1))) "MWysack" wrote: Hello, I am trying to create strings of text by combining cells using CONCATENATE. I need to have each string of text to be the same length. Below are some examples of the text strings: A1= 0000001 B1=123456789 C1= Doe D1= John A2=0000002 B2=987654321 C2=Smith D2=John In need the lines to look like this: 0000001123456789Doe John 0000002987654321Smith John This is what they look like when I use CONCATENATE: 0000001123456789DoeJohn 0000002987654321SmithJohn Is there anyway to get these strings of text to look like this without manually adding the spaces for each line? Thanks, Megan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating sequential text string of fixed length | Excel Discussion (Misc queries) | |||
Text to column fixed length | Excel Discussion (Misc queries) | |||
Fixed Length, Text Formatted | Excel Discussion (Misc queries) | |||
creating numbers to a fixed length string... | Excel Worksheet Functions | |||
fixed string length,even other record is copied | Excel Discussion (Misc queries) |