+ Reply to Thread
Results 1 to 4 of 4

Getting Rid of spaces in Text within Cells

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Getting Rid of spaces in Text within Cells

    I have a large spreadsheet that I need to take the spaces out within the text in each cell. Is there an excel function or macro that can do this? It would save me lots of time rather then having to go in manually and doing it!!

    Attached is spreadsheet example.
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Getting Rid of spaces in Text within Cells

    find/ replace?
    find space replace with nothing
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Getting Rid of spaces in Text within Cells

    =SUBSTITUTE(TRIM(A3)," ","")
    work?
    Quang PT

  4. #4
    Registered User
    Join Date
    01-15-2013
    Location
    Kansas City
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Getting Rid of spaces in Text within Cells

    Wow that was simple. I didn't think find/replace would work. Thanks!

+ 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. VBA Macro to export cells to text file and add extra spaces
    By kmfdm515 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2013, 03:50 AM
  2. [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
  3. Specify range of cells including spaces, manually typed text and line breaks in VBA
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2012, 12:59 AM
  4. Eliminating spaces within text cells
    By dforte in forum Excel General
    Replies: 9
    Last Post: 01-10-2010, 06:55 PM
  5. [SOLVED] How can I replace spaces in text cells (excel) with underscores?
    By JB2006 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-20-2006, 01:10 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