+ Reply to Thread
Results 1 to 4 of 4

Spaces after every Name in Column

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    Green Bay, WI
    MS-Off Ver
    2013
    Posts
    1

    Angry Spaces after every Name in Column

    I recently bought a database with names, addresses, cities, etc. and after EVERY single one of the names, cities, and addresses, there is 10+ spaces after the data. I cannot get the TRIM function to work for more then one Cell on excel 2013, I am trying to adjust thousands of cells of information to put onto envelopes, I will give an example of what it shows up when I use the data and put it on an envelope

    DOE ,JOHN F
    555 Street Name
    Chicago , IL 60652

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,960

    Re: Spaces after every Name in Column

    You need to post a sample workbook with a few rows. The trailing characters might not be "spaces" there are others that don't show up.
    To attach a Workbook
    • Click Advanced (next to quick post),
    • Scroll down until you see "Manage Attachments",
    • Click that then select "add files" (top right corner).
    • Click "Select Files" find your file, click "open" click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Click "Done" at bottom right to close the Attachment Manager.
    • Click "Submit Reply"
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-16-2014
    Location
    United States
    MS-Off Ver
    2013
    Posts
    72

    Re: Spaces after every Name in Column

    =IFERROR(TRIM(IF(LEN(VLOOKUP(F7, Sheet2!$A$1:$B$10000, 2, FALSE))>0,SUBSTITUTE(VLOOKUP(F7, Sheet2!$A$1:$B$10000, 2, FALSE), ” “, “”),””)), “”)


    Use this formula as needed.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Spaces after every Name in Column

    just trying with dummy data, maybe find " *" that is 2 spaces and an asterik and replace with one space? Worked on my test data.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. shift cells in column 2 spaces to right if specific text appears in that column
    By hosburgh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2014, 12:46 PM
  2. Replies: 8
    Last Post: 02-13-2014, 11:30 AM
  3. [SOLVED] sheet1 row with spaces between cells, pulled to sheet2 column with no spaces between cells
    By chestersneakers7 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-18-2013, 05:56 PM
  4. Replies: 6
    Last Post: 12-11-2008, 02:58 PM
  5. Condensing one column to another without spaces.
    By Gary in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2005, 06:06 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1