Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: pad text with trailing spaces

  1. #1
    New Member
    Join Date
    May 2002
    Location
    Kalamazoo MI US
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I need to output variable length text as fixed length (15 characters) data, left justified and filled with trailing spaces. Any ideas? Solved....

    [ This Message was edited by: B Caple on 2002-05-14 12:11 ]

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,656
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default



    =A1&REPT(" ",15-LEN(A1))

  3. #3
    New Member
    Join Date
    Sep 2015
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: pad text with trailing spaces

    this did not work when I converted Excel spreadsheet to a text file and then opened in Notepad. The cells did not have the correct character position for each column.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •